0 Members and 1 Guest are viewing this topic.
Also, a goto is more efficient to exit a loop than to set a variable to a number above the maximum because it will save time in the code and its 3 bytes less.
ASM is a totally different animal from BASIC. But the ASM jump commands I'm familiar with, JL and JP both take fairly long times to jump as far as I'm aware. I'm not sure if Axe uses those commands for GOTO though.
Only 12 clock cycles? Ignore everything I said before then. I obviously need to look at that part in ASM in 28 days again.EDIT: For the names as well
Quote from: Qwerty.55 on October 04, 2010, 06:19:04 pmOnly 12 clock cycles? Ignore everything I said before then. I obviously need to look at that part in ASM in 28 days again.EDIT: For the names as well You might have been thinking of ASM's implementation of the BASIC Goto statement. In pure ASM, all Z80 instructions should take about sixteen cycles or less.
*23 cycles or less.