NextBuild-VSCode README
NextBuild & Boriel ZX Basic Syntax & Snippets for Visual Studio Code
Derived from zxbasic extension by jsjlogin.zxbasic
https://github.com/jsanjose/zxbasic-vscode
Thank you to Remy Sharp for his NextBasic extension examples which can
be found here : https://github.com/remy/vscode-nextbasic - NB you cannot have
both enabled for the same profile as they both work with the .BAS extension.
NextBuild is a set of tools and library for creating software
for the ZX Spectrum Next. Most if not all hardware features are accessible.
Download here : https://github.com/em00k/nextbuild
Not all classic keywords have Snippets, all NextBuild functions should have syntax help.
You can find more information about Boriel ZX Basic Compiler
here : https://github.com/boriel-basic/zxbasic
Boriel ZX Basic command reference can be found when you hover over a keywork
and a link back to https://zxbasic.readthedocs.io/en/latest/ which contains
all the documentation.
NextBuild
LOADSDBANK, LOADSD, SAVESD, SHOWLAYER2, CLS256, L2TEXT, DOTILE8,
DOTILE, DOTILEBANK8, DOTILEBANK16, FDOTILE16, FDOTILE8, FL2TEXT,
FPLOTL2, CLIPLAYER2, CLIPULA, CLIPTILE, CLIPSPRITE, TILEMAP,
ENABLESHADOW, WAITRETRACE, WAITRETRACE2, GETREG, SCROLLLAYER2,
PLOTL2, FPLOT2, PALUPLOAD, MMU8, MMU16, DRAWIMAGE, CLS320
INITSPRITES, INITSPRITES2, REMOVESPRITE, BREAK, BBREAK,
UPDATESPRITE, LOADBMP, RESERVEBANK, FREEBANK, INITSFX, INITMUSIC,
ENABLESFX, DISABLESFX, ENABLEMUSIC, DISABLEMUSIC, #DEFINE IM/NEX
NEXTREG, NEXTREGA, WAITKEY
Boriel ZX-Basic
Statements
BEEP, BIN, BORDER, BRIGHT, CIRCLE, CLS,
CONTINUE, COPY, DATA, DIM, DRAW, ERASE, FLASH,
FOR, GO SUB, GO TO, IF, INK, INPUT, INVERSE, LET, LIST, LLIST,
LOAD, LPRINT, MERGE, MOVE, NEW, NEXT, OPEN#, OUT, OVER, PAPER,
PAUSE, PLOT, POKE, PRINT, RANDOMIZE, READ, RESTORE, RETURN,
Functions
ABS, ACS, ASN, ATN, ATTR, CHR$, CODE, COS, EXP, FN, INKEY$, INT,
IN, LEN, LN, PEEK, PI, POINT, RND, SCREEN$, SGN, SIN, SQR, STR$,
TAN, USR, VAL$, VAL
Operators
AND, NOT, OR
Other reserved words
AT, LINE, STEP, TAB, THEN, TO, STOP
Boriel's ZX Basic Compiler
This extension supports also Boriel's ZX Basic Compiler extended syntax.
Statements
DO, ELSE, ELSEIF, END, EXIT, FUNCTION, GOTO, GOSUB, LOOP, UNTIL, WEND, WHILE
Functions
ASC, CAST, CHR, CSRLIN, HEX, HEX16, GetKey, MultiKeys, GetKeyScanCode,
LBOUND, LCase, STR, POS, SCREEN, UCase
Operators
bAND, bNOT, bOR, bXOR, MOD, SHL, <<, SHR, >>, XOR
Data types
Byte, Ubyte, Integer, Uinteger, Long, Ulong, String, Fixed, Float
Special
ALIGN, ASM
Other reserved words
AS, BOLD, ByRef, ByVal, CONST, DECLARE, FastCall, ITALIC, StdCall, SUB
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following commnand, and press Enter.
ext install nextbuild
Acknowledgments
- JSJ, boriel, ped7g, Mike Dailly, Flash, Baggers, Remy!