Close

more implemented fcts & statements

A project log for Xts-uBasic

Building a Teensy 3.6 based computer that run BASIC w/ keyboard, screen, sound card & wifi...

franck-galliatFranck GALLIAT 01/12/2017 at 19:540 Comments
BackSpace [8] & Ctrl-C [3] now works from Serial term

NEW       [v] stll bugged (don't give hand back)

TONE      [v] play a tone on speaker
NOTONE    [v] mute speaker
PLAYT5K   [v] PLAYS a T5K tune
PLAYT53   [v] PLAYS a T53 tune

LED       [v] LED 1,1 turn on 1st led // LED 3,0 turn off 3rd

RSEED     [v] does nothing ...
DELAY     [v] wait for x milliseconds
PRINT / ? [v] still have to distinguish ',' & ';'
OUT       [v] print a char of ascii code <x>, can be redirected to FILEIODesc
CLS       [v] clear current screen (LCD_BUILTIN, later : VGA ....)

REM       [v] make a line comment

FILES     [v] list storage content
CAT       [v] read a specific file (w/o interpret it)

DELETE    [v] erase a file from storage
DUMPSTS   [v] dump serial to SD file  // DUMPSTS "<filename>" -> read until timeout
WRITE     [ ]
WRITETEXT [ ]

LIST      [v] List content of PRGM memory [ need checkbreack() ]
RUN       [v] Run content of PRGM memory [ need checkbreack() ]
LOAD      [v] (does it starts by a 'NEW' statement ? // I think not // so lines could be merged)
SAVE      [v] Save content of PRGM memory // very slow impl. .... // auto-adds '.BAS' if needed

FOR       [ ] FOR / TO / [STEP] / NEXT
IF        [v] IF <bool expr> THEN ...
GOTO      [v] Jump directly to a line
GOSUB     [v] Jump to line after saving current position
RETURN    [v] return to current position after GOSUB

END / STOP[v] STOPS execution of current program

--------------------------

RND(x)    [v] return int between 0 & x

CHR$(x)   [v] return ASCII char from x
STR$(x)   [v] return string representing number x

FREE()    [v] return ammount of free RAM in bytes (beware it's an int not a short)

Discussions