A83: Question
[Prev][Next][Index][Thread]
A83: Question
Could someone point to what I'm doing wrong? I was
wondering what the difference is between these 2 sets
of code, I can't figure out waht I'm doing wrong, hl
should point to the same place shouldn't it?
Jimmy
skip:
dec hl
dec hl
dec hl
;------------------------------------
ld b, (hl) ; 7
dec hl ; 6
skip2:
dec hl ; 6 * 8 letters = 48
djnz skip2 ; (13 * 7) + 8 = 99 Max Clocks =
158
;------------------------------------
ret
Second Code:
skip:
dec hl
dec hl
dec hl
;------------------------------------
ld c, (hl) ; 7
inc c ; 4
xor a ; 4 ' Is sbc affected by a or not?
xor b ; 4 If not then do a ld b, 0?
sbc hl, bc ; 15 total max 34
clocks;------------------------------------
ret
=====
»»»»»»»»»»»»»»»«««««««««««««««
» TIMagic@goatse.cx «
» http://www.zed80asm.org «
» http://www.timagic.cjb.net «
»»»»»»»»»»»»»»»«««««««««««««««
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
Follow-Ups: