2020-05-15 16:08:27 -04:00
|
|
|
: _cell! ( tilenum pos )
|
|
|
|
2 * 0x7800 OR _ctl ( tilenum ) _data 1 _zero ;
|
|
|
|
: _lf
|
|
|
|
XYPOS @ 0 ( blank ) OVER _cell!
|
|
|
|
[ VDP_COLS LITN ] / 1+ [ VDP_ROWS LITN ] MOD
|
|
|
|
[ VDP_COLS LITN ] * XYPOS !
|
|
|
|
;
|
2020-05-15 12:14:27 -04:00
|
|
|
: (emit)
|
2020-05-15 16:08:27 -04:00
|
|
|
DUP 0x0d = IF DROP _lf EXIT THEN
|
|
|
|
0x20 - DUP 0< IF DROP EXIT THEN
|
|
|
|
0x5e MIN ( tilenum ) XYPOS @ _cell!
|
2020-05-15 12:14:27 -04:00
|
|
|
XYPOS @ 1+ DUP [ VDP_COLS VDP_ROWS * LITN ]
|
|
|
|
= IF DROP 0 THEN XYPOS !
|
2020-05-14 22:15:31 -04:00
|
|
|
;
|