[A83] Re: finding the absolute value of hl


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

[A83] Re: finding the absolute value of hl



When you're desperate try using an emulator and break points, then trace
through the routine in question instruction by instruction.  This debugging
technique works for all but a few very special cases like when timing is an
issue.

brandon

----- Original Message ----- 
From: "Matthew W Marshall" <matthewwmarshall@juno.com>
To: <assembly-83@lists.ticalc.org>
Sent: Monday, August 04, 2003 11:54 AM
Subject: [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!
>
>




References: