`prev Menu next`

Difference between Decimal BASIC and Microsoft BASIC

Major differences from other BASIC interpreters
Variables are initialized for every execution.
The dimension of an array can not be changed during execution.
The definition of a DEF statement can not be changed during execution.

Hints on rewriting of special commands of N88-BASIC
[memo]
N88-BASIC is a Microsoft compatible dialect that has the screen of size 640×400.

CLS
CLEAR is a substitute when CLS is used for erasing the graphics screen.
CLEAR, CONSOLE
Commonly, these statement are negligible.
Note that CLEAR has different meaning on Full BASIC.
SCREEN
If you want the drawing pane to be the size of 640×400, replace `SCREEN 3` with
`SET BITMAP SIZE 640,400
SET WINDOW 0,639,399,0
`
COLOR
Replace `COLOR n` with `SET TEXT COLOR n`.
Replace `COLOR ,,,n` with `SET LINE COLOR n` .
Color numbers are 0 for white，1 for black，2 for blue，3 for green，4 for red，･･･
LOCATE
Replace
`LOCATE a,b
PRINT ～～
` with
`SET WINDOW 0,80,39,-1
PLOT TEXT, AT a,b:～～
`
However, if ～～ is a numeric expression, replace `PRINT ～～` with
`PLOT TEXT, AT a,b: STR$(～～)`
and replace `PRINT USING "###";～～` with
`PLOT TEXT, AT a,b, USING "###": ～～`
GET@，PUT@
Replace
`GET@(x1,y1)-(x2,y2), B
・・・・
PUT@(x1,y1), B, PSET
` with
`OPTION BASE 0
DIM B(639,399)
MAT B=ZER(x2-x1, y2-y1)
ASK PIXEL ARRAY (x1,y1) B
・・・・
MAT PLOT CELLS, IN x1,y1; x2,y2: B
`

Note.
LOCATE, PUT and GET are keywords of Full BASIC, which have different syntax and different meaning.