32 bit Maths routines

General Chit Chat about Sinclair Computers and their Clones

Re: 32 bit Maths routines

Postby sirmorris on Fri Feb 05, 2010 3:54 pm

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
5 x -go-hold rings, 4 x calling birds, 3 x french hens, 2 x turtle doves and 1 x partridge (in a pear tree)
User avatar
sirmorris
 
Posts: 334
Joined: Thu May 08, 2008 4:45 pm
Location: oxon, uk

Re: 32 bit Maths routines

Postby Forthretro.new.fr on Mon Feb 22, 2010 12:18 am

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'
User avatar
Forthretro.new.fr
 
Posts: 31
Joined: Thu Nov 19, 2009 9:34 pm

Re: 32 bit Maths routines

Postby Moggy on Mon Feb 22, 2010 11:19 am

Hi Dominique
Translated and e-mailed

Regards Moggy
Moggy
 
Posts: 75
Joined: Wed Jun 18, 2008 1:00 pm

Re: 32 bit Maths routines

Postby Forthretro.new.fr on Mon Feb 22, 2010 10:30 pm

Thank you again Moggy,

32 bit mathematics - English by Moggy.

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

A+ Dominique
User avatar
Forthretro.new.fr
 
Posts: 31
Joined: Thu Nov 19, 2009 9:34 pm

Previous

Return to Sinclair Misc

Who is online

Users browsing this forum: No registered users and 0 guests

cron