[A83] Re: big numbers


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

[A83] Re: big numbers




> Van: Nick Reichert <discjammer@hotmail.com>
> 
> Hello everyone,
> Does anyone know of a routine to display and add/subtract 4-byte numbers
(up 
> to 4,294,967,295), like the C++ variable "long int?" I ask this because I
am 
> making a factoring program, and it would be very useful if I could factor

> numbers larger than 65,535. Sorry if this question has already been
asked.
>                       Thanks everybody!
>                       Nicholas Reichert


I think you can look at the Z80 sources of the z88dk.
(http://z88dk.sourceforge.net/ if you shouldn't know...)

Look in {z88dk}/libsrc/z80_crt0s/crt0_long/

*Some* pretty good 32bit calculation routines. In different flavours
(signed and unsinged)

	Henk Poley