Ok, so I started to read Hot_Dog's tutorials and just have a noobish optimization question. It doesn't matter either way really but I just wanna know if I am technically correct or not.
One of the sample programs shows this, or something close:
#include "ti83plus.inc"
.org 40339
.db t2ByteTok,tAsmCmp
B_CALL _ClrLCDFull
ld b,200
ld a,5
Beginning_Of_Loop:
add a,1
djnz Beginning_Of_Loop
ld h,0
ld l,a
B_CALL _DispHL
B_CALL _getKey
B_CALL _ClrLCDFull
ret
Wouldn't it technically be better to do:
#include "ti83plus.inc"
.org 40339
.db t2ByteTok,tAsmCmp
B_CALL _ClrLCDFull
ld b,200
ld a,5
Beginning_Of_Loop:
inc a
djnz Beginning_Of_Loop
ld h,0
ld l,a
B_CALL _DispHL
B_CALL _getKey
B_CALL _ClrLCDFull
ret
I have no idea if that even does the same thing, I didn't test it. I'm just doing this off what I see.
Sorry if this sounds dumb, but I'm just a little curious. Thanks for any help