Shop OBEX P1 Docs P2 Docs Learn Events
32 bit math (input 32 bit value from keypad) what''s wrong? — Parallax Forums

32 bit math (input 32 bit value from keypad) what''s wrong?

ArchiverArchiver Posts: 46,084
edited 2003-10-01 01:43 in General Discussion
Are you debugging the correct variable.. ie "z".

Original Message
From: <azeasi@a...>
To: <basicstamps@yahoogroups.com>
Sent: Wednesday, October 01, 2003 8:37 AM
Subject: Re: [noparse][[/noparse]basicstamps] 32 bit math (input 32 bit value from keypad)
what's wrong?


> I still seem to be having problems with the 32 bit add routine. I am not
sure
> what I am doing wrong but here is an example that doesn't seem to work:
> 89999999 + 1
> It seems like the carry from low word sum to high word sum is getting
lost.
> Would you please provide an example of how to perform the above summation
> using debug to display the results. This is how I tried to test it:
> x0=9999
> x1=8999
> y0=1
> y1=0
>
> gosub add1616
> debug dec z1,dec z0
>
> I assume my problem must be in the way I am trying to display the sum but
I
> can't seem to figure out the problem. Thanks!
>
>
> [noparse][[/noparse]Non-text portions of this message have been removed]
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
Sign In or Register to comment.