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:37 in General Discussion
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]
Sign In or Register to comment.