1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-15 03:18:05 +11:00
collapseos/arch/z80/sms/blk/607

10 lines
335 B
Plaintext
Raw Normal View History

2020-05-16 06:08:27 +10:00
: _cell! ( tilenum pos )
2 * 0x7800 OR _ctl ( tilenum ) _data 1 _zero ;
: _lf
XYPOS @ BEGIN ( pos )
0 ( blank ) SWAP TUCK _cell!
1+ DUP [ VDP_COLS LITN ] MOD NOT UNTIL
[ VDP_COLS VDP_ROWS * LITN ] MOD XYPOS ! ;
: _bs 0 ( blank ) XYPOS @ TUCK _cell! ( pos ) 1-
[ VDP_COLS VDP_ROWS * LITN ] MOD XYPOS ! ;