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

RE: [N8VEM-S100:6702] CP/M Mbasic 5.21



Sorry, I missed the first part of this thread. Is this MBasic for DOS?

If so, don't you need **genuine** boot ROMs to make MBasic work properly?

 

Leonard

 

From: n8vem...@googlegroups.com [mailto:n8vem...@googlegroups.com] On Behalf Of Crusty OMO
Sent: Monday, April 06, 2015 8:17 PM
To: n8vem...@googlegroups.com
Subject: RE: [N8VEM-S100:6702] CP/M Mbasic 5.21

 

Todd,

That is really weird.   I get the same results here.
Funny thing is when I do a

PRINT E * 4

I get 4

but when I do
PRINT 4 * E
I get the same floating point number you do.... Hmmm 

I wonder if it has to do with the type of variable?  Could it be assuming that 4 is an integer and E is a floating point variable?  But when you do E * 4, it assumes 4 is now a floating point constant?

Either way, looks like this 5.21 BASIC has a bug...

Cheers,
Josh


Date: Mon, 6 Apr 2015 12:24:23 -0700
From: litte...@gmail.com
To: n8vem...@googlegroups.com
Subject: [N8VEM-S100:6691] CP/M Mbasic 5.21

I've been messing around with Josh's 8080 board.

I XMODEM'd a basic program written in NorthStar Basic
over to Josh's board to play with.  After making a few
corrections for the different versions of Basic.  It almost
runs...

It's been awhile since I've wrote a basic program, but I
just don't understand why the CP/M ver of basic does this;

ALTAIR/IMSAI CPU CARD. 61K CP/M 2.2

WBOOT

a>MBASIC
BASIC-80 Rev. 5.21
[CP/M Version]
Copyright 1977-1981 (C) by Microsoft
Created: 28-Jul-81
31800 Bytes free
Ok


E=1
Ok
PRINT 4 * E
-2.41704E-35
Ok
Z=10
Ok
PRINT 4 * Z
-2.41704E-34
Ok


In my mind 4 * E should equal one
and 7 * Z should equal ten.

Why am I getting -2.xxxxEyy ?????
 


--
You received this message because you are subscribed to the Google Groups "N8VEM-S100" group.
To unsubscribe from this group and stop receiving emails from it, send an email to n8vem-s100+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "N8VEM-S100" group.
To unsubscribe from this group and stop receiving emails from it, send an email to n8vem-s100+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.