mirror of
https://github.com/romychs/OK240.2-Firmware.git
synced 2026-09-14 23:05:10 +03:00
28 lines
956 B
Markdown
28 lines
956 B
Markdown
# Ocean-240.2 MS Basic
|
|
|
|
Source codes of Microsoft Basic for Ocean-240.2 computer (BASIC-80 R.5/240).
|
|
Based on Microsoft BASIC-80 v5.21.
|
|
|
|
- In Z80 mnemonics, but limited for i8080 instruction set.
|
|
- I tried to keep the original label names as they are in the source codes published by Microsoft.
|
|
- Small bug with cond jump to data table fixed.
|
|
|
|
## Extended Ocean-240.2 operators
|
|
|
|
* CLS - Clear screen;
|
|
* SCRN - Set graphics mode;
|
|
* COLOR - Set foreground colors;
|
|
* CURS - Move cursor to specified position;
|
|
* PLOT - Draw line from cursor pos to specified position;
|
|
* RECT - Draw rectangle with diagonal from cursor pos to specified position;
|
|
* GPRINT - Print graphics screen to printer;
|
|
* TONE - unimplemented;
|
|
|
|
## Compile
|
|
|
|
Code is located in memory at address: 0x100
|
|
|
|
sjasmplus --sld=MB_OK240.sld --sym=MB_OK240.labels --raw=MB_OK240.obj --fullpath MB_OK240.asm
|
|
|
|
To compile sources, use [sjasmplus Z80 assembler](https://github.com/z00m128/sjasmplus).
|