A86: adding hl and a


[Prev][Next][Index][Thread]

A86: adding hl and a




I feel realy stupid about this but I am haveing troubble adding a to hl.  
First time I had probelms i made this little function.
a_plus_hl:
add a,l
ld l,a
ret nc
inc hl
ret
;but when i used it like this
ld hl,$FC00
ld a,$08
call a_plus_hl
ld hl,$a0
call a_plus_hl
;after this hl would contain $FCA8  ad first i thought it was the emu
;so i put it on my calc and messed up the memory due to this
;can anyone tell me wtf is going on?

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


Follow-Ups: