Shop OBEX P1 Docs P2 Docs Learn Events
PASM Inline Delay — Parallax Forums

PASM Inline Delay

JonnyMacJonnyMac Posts: 9,208
edited 2011-02-02 11:06 in Propeller 1
This is okay, right? Or am I about to step on a landmine?
mov     delay, #15
                        djnz    delay, $

Comments

  • BeanBean Posts: 8,129
    edited 2011-02-02 10:46
    Jon,
    I think you need "djnz #$".

    Bean
  • ericballericball Posts: 774
    edited 2011-02-02 11:06
    Other than the missing immediate flag, no there's no pipeline problems using the destination register in the next instruction. It's only if you modify the next instruction that you have to be careful as the instruction will still have the previous value. (This can be useful on some occasions.)
Sign In or Register to comment.