Class AppleSoftFile
In: lib/DOSFile.rb
Parent: DOSFile
IntegerBasicFile AppleSoftFile BinaryFile DOSFile TextFile TopLevel
 Adapted from FID.C -- a utility to browse Apple II .DSK image files by Paul Schlyter (pausch@saaf.se)

Applesoft file format:

 <Length_of_file> (16-bit little endian)
 <Line>
 ......
 <Line>
 where <Line> is:
 <Next addr>  (16-bit little endian)
 <Line no>    (16-bit little endian: 0-65535)
 <Tokens and/or characters>
 <End-of-line marker: $00 >

Methods

Constants

APPLESOFT_TOKENS = [ "END","FOR","NEXT","DATA","INPUT","DEL","DIM","READ", "GR","TEXT","PR#","IN#","CALL","PLOT","HLIN","VLIN", "HGR2","HGR","HCOLOR=","HPLOT","DRAW","XDRAW","HTAB", "HOME","ROT=","SCALE=","SHLOAD","TRACE","NOTRACE", "NORMAL","INVERSE","FLASH","COLOR=","POP","VTAB", "HIMEM=","LOMEM=","ONERR","RESUME","RECALL","STORE", "SPEED=","LET","GOTO","RUN","IF","RESTORE","&","GOSUB", "RETURN","REM","STOP","ON","WAIT","LOAD","SAVE","DEF", "POKE","PRINT","CONT","LIST","CLEAR","GET","NEW", "TAB(","TO","FN","SPC(","THEN","AT","NOT","STEP","+", "-","*","/","^","AND","OR",">","=","<","SGN","INT", "ABS","USR","FRE","SCRN(","PDL","POS","SQR","RND", "LOG","EXP","COS","SIN","TAN","ATN","PEEK","LEN", "STR$","VAL","ASC","CHR$", "LEFT$","RIGHT$","MID$","?", "?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?"

Public Instance methods

display file with all AppleSoft BASIC tokens expanded to ASCII

[Validate]