Bscript >
Bssembly >
Binary >
Documentation!
ROM editor
Datatypes:
pointer = <>
byte = []
data = ()
location (16 bit) = {}
Instructions:
Arithmetic:
SET - set <target> [byte]
CLR - clear <target>
CPY - copy <source> <target>
ADD - add <source1> <source2> <target>
SUB - subtract <source1> <source2> <target>
MLT - multiply <source1> <source2> <target>
INC - increment <source/target>
DEC - decrement <source/target>
BSL - shift left <source> <target>
BSR - shift right <source> <target>
Misc:
EXT - exit
RND - random number <min> <max> <target>
SIN - sin of <source> <target> (0-255)
COS - cos of <source> <target> (0-255)
Control Flow:
JMP - jump TO:"location name"
LOC - jump point LOC:"location name"
EQL - equals <source1> <source2> TO:"location name"
NEQ - not equals <source1> <source2> TO:"location name"
LTH - less than <source1> <source2> TO:"location name"
GTH - greater than <source1> <source2> TO:"location name"
PSH - save cursor position
POP - load cursor position
Drawing:
BMP - bitmap [width] [height] (image)
TEX16 - texture <posx> <posy> <width> <height> {<location>}
CLB - clear bitmap
RGB - color <red> <green> <blue>
COL - color <source>
LFT - line <fromx> <fromy> <tox> <toy>
PNT - point <posx> <posy>
TXT - draw char <posx> <posy> <ascii-char>
TXT16 - draw string <posx> <posy> {<location>} <length>
SYN - sync with screen refresh
IO:
INP - input <target>
OUT - output <source>
DLY - delay <time (10x ms)>
IPT16 - import ROM data {<source>} {<target>} {<length>}
XPT16 - export RAM data {<source>} {<target>} {<length>}
PUT16 - put <source> {<location>}
RET16 - retrieve {<location>} <target>
BTN - is key down <keycode> <target>
GPBTN - gamepad button value <gamepad> <buttonnr> <target>
GPJOY - gamepad joystick axis value <gamepad> <axis> <target>
DLT - delta time <target>
MPOS - mouse position <x-target> <y-target>
MBTN - is mouse btn down <mouse-btn> <target>
PXL - read a pixel value <x> <y> <red> <green> <blue>
bitmap drawerROM editor