Nop90 Posted July 17, 2019 Share Posted July 17, 2019 1 hour ago, 42bs said: cmp #10 beq else sta $10 TRIPLE_NOP ; = dc.b $5c else: stz $10 TRIPE_NOP will skip over the "stz $10", otherwise one would write: Why should it skip it? 3 cycles means only that it ìs the time the CPU takes to handle that special NOP, it will not affect the PC differently than a standard NOP. The use of this special opcodes should be to better sincronize the timing of the code with something very fast happening at specific time periods, without the need to use timers and interrupts (you can set a timer only to 1us, and if you take count of the timer activation and of the time to enter the interrupt, its a much more time than 3 cycle) For a three cycles delay I'm using a BIT M instruction at the moment, but there is no 1 cycle opcode other than some of this special NOPs Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.