32 bit Maths routines

General Chit Chat about Sinclair Computers and their Clones
sirmorris
Posts: 2811
Joined: Thu May 08, 2008 5:45 pm

Re: 32 bit Maths routines

Post by sirmorris »

Haha I saw an almost identical spoof transcript many years ago featuring Bjarne Stroustrup as the interviewee. It was making out that c++ was just a joke to be played on the developer community...

C
User avatar
Forthretro.new.fr
Posts: 32
Joined: Thu Nov 19, 2009 9:34 pm

Re: 32 bit Maths routines

Post by Forthretro.new.fr »

Hello friends

This is the 32 bit program with the 4 elementary operation : + - / *

written in Forth and Basic. (If some one could be kind enough to translate it in English, thanks)

Basic send the datas thrue string B$ and C$, Forth send the result in string R$.

Since the source is included, I believe it is easy to follow.

However, I was a little bit lost with the D-file and the String address $4010.

Is it possible to have all the String BEFORE the D-file ?, I mean after the last REM byte ?

Merci to all.

http://forthretro.new.fr/download/MathDouble.zip

Don't forget the DOT at the end for Double Number, while Single are without the DOT.
The program is Base Hexa (16) but feel free to change; There is no Error Check :
If you enter 123456. in binary, the result will be 'nothing'
Moggy
Posts: 3231
Joined: Wed Jun 18, 2008 2:00 pm

Re: 32 bit Maths routines

Post by Moggy »

Hi Dominique
Translated and e-mailed

Regards Moggy
User avatar
Forthretro.new.fr
Posts: 32
Joined: Thu Nov 19, 2009 9:34 pm

Re: 32 bit Maths routines

Post by Forthretro.new.fr »

Thank you again Moggy,

32 bit mathematics - English by Moggy.

http://forthretro.new.fr/download/MathDouble.zip

A+ Dominique
Post Reply