BAS File Format Description

Conventions

BYTE - 8 bit unsigned char
WORD - 16bit unsigned short (little endian)

Header

Same as Atari Basic

Variable name table

Same as Atari Basic

Variable values table

Same as Atari Basic, two new values:
$C1 PROC - unknown interpretation of data
$C2 LABEL - unknown interpretation of data

Token area

Same as Atari Basic, new commands and operands:
Commands:
38 DPOKE
39 MOVE
3A -MOVE
3B *F
3C REPEAT
3D UNTIL
3E WHILE
3F WEND
40 ELSE
41 ENDIF
42 BPUT
43 BGET
44 FILLTO
45 DO
46 LOOP
47 EXIT
48 DIR
49 LOCK
4A UNLOCK
4B RENAME
4C DELETE
4D PAUSE
4E TIME$=
4F PROC
50 EXEC
51 ENDPROC
52 FCOLOR
53 *L
54 ------------------------------
55 RENUM
56 DEL
57 DUMP
58 TRACE
59 TEXT
5A BLOAD
5B BRUN
5C GO#
5D #
5E *B
5F PAINT
60 CLS
61 DSOUND
62 CIRCLE
63 %PUT
64 %GET
Operands:
0D NHCONST
55 DPEEK
56 &
57 !
58 INSTR
59 INKEY$
5A EXOR 
5B HEX$
5C DEC
5D DIV 
5E FRAC
5F TIME$
60 TIME
61 MOD 
62 EXEC 
63 RND
64 RAND
65 TRUNC
66 %0
67 %1
68 %2
69 %3
6A GO# 
6B UINSTR
6C ERR
6D ERL
NHCONST is same as Atari Basic NCONST, except that it's interpreted as hex number $XXXX. Atari pages accessed Counter times. Last modified: Mon Apr 19 21:11:40 1999
(c) 1999 Jindroush
Back
Praetorian