Home Page

Comparison of MBASIC and BBC BASIC



The table below compares the features of two CP/M-80 BASICs: Microsoft's MBASIC and BBC BASIC:

FeatureMBASIC-80BBC BASIC (Z80)
Number of keywords1301331
Integer data types16-bit32-bit
Floating-point data types32-bit (single)
64-bit (double)
40-bit
Maximum string length255 characters255 characters
Transcendental functionsSIN, COS, TAN, ATN, LOG, EXPSIN, COS, TAN, ASN, ACS, ATN, LN, LOG, EXP
Accuracy of transcendental functions2Approximately 7 significant figuresApproximately 9 significant figures
Maximum length of variable names40 charactersUnlimited3
Sequential disk accessYes (CRLF terminator)Yes (CR terminator)
Random disk accessYes (fixed-length records)Yes (access to individual bytes)
Named subroutines with parametersNoYes
Local variables in functions/subroutinesNoYes
RESUME after errorYesNo
WHILE...WEND loopsYesNo
REPEAT...UNTIL loopsNoYes
Inline Z80 assemblerNoYes
File size24,320 (v5.21)14,848 (v3.0)

Notes:

  1. Including 12 graphics, sound etc. keywords (which are recognised and tokenised, but not supported in the generic CP/M version) and 11 filing system ('star') commands.
  2. Based on results from ATN(1.0)
  3. In practice limited by maximum line length.


Home - Products - Contact us

Best viewed with Any Browser Valid HTML 4.0!
© Richard Russell 2009