[A83] finding the absolute value of hl


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

[A83] finding the absolute value of hl



Hi all!  I just have short question for a quiet mailing list...
to find the absolute value of hl, is there anything wrong with this?

 bit 7,h
 jp z,HL_Is_Positive
 ex hl,de
 or a
 ld hl,0000h  
 sbc hl,de
 ex hl,de
HL_Is_Positive:

I cannot see anything wrong, but I am fighting with this horrendous bug,
and I am becoming desperate!

MWM

________________________________________________________________
The best thing to hit the internet in years - Juno SpeedBand!
Surf the web up to FIVE TIMES FASTER!
Only $14.95/ month - visit www.juno.com to sign up today!



Follow-Ups: