d3049b2404
In VE on the SMS, the first contents line would always be cleared because of NEWLN being called when the FBUF would spit its last char. Inconvenient... I've added a "graphical" mode to the grid subsystem to inhibit this behavior in a graphical situation such as in VE. Also, write a more complete Grid documentation.
16 lines
367 B
Forth
16 lines
367 B
Forth
: COLS 80 ; : LINES 32 ;
|
|
: CELL! ( g pos -- )
|
|
COLS /MOD 6 PC! ( y ) 5 PC! ( x ) 0x20 + 0 PC! ;
|
|
: NEWLN ( ln -- ) DROP 0xa 0 PC! ;
|
|
|
|
SYSVARS 0x70 + CONSTANT GRID_MEM
|
|
402 403 LOADR ( Grid )
|
|
390 LOAD ( xcomp core high )
|
|
(entry) _
|
|
( Update LATEST )
|
|
PC ORG @ 8 + !
|
|
," BLK$ ' EFS@ BLK@* ! ' EFS! BLK!* ! GRID$ " EOT,
|
|
ORG @ 256 /MOD 2 PC! 2 PC!
|
|
H@ 256 /MOD 2 PC! 2 PC!
|
|
|