2020-11-10 20:30:37 -05:00
|
|
|
: _atrow! ( pos -- ) COLS / FNTH 1+ * _row! ;
|
|
|
|
: _tocol ( pos -- col off ) COLS MOD FNTW 1+ * 8 /MOD ;
|
|
|
|
: CELL! ( g pos -- )
|
|
|
|
DUP _atrow! DUP _tocol _col! ROT ( pos coff g )
|
|
|
|
FNTH * ~FNT + ( pos coff a )
|
|
|
|
_xinc _data@ DROP
|
|
|
|
FNTH 0 DO ( pos coff a )
|
2020-05-08 11:36:50 -04:00
|
|
|
C@+ 2 PICK 8 -^ LSHIFT
|
|
|
|
_data@ 8 LSHIFT OR
|
|
|
|
LCD_BUF I + 2DUP FNTH + C!
|
|
|
|
SWAP 8 RSHIFT SWAP C!
|
|
|
|
LOOP 2DROP
|
2020-11-10 20:30:37 -05:00
|
|
|
DUP _atrow!
|
2020-05-08 11:36:50 -04:00
|
|
|
FNTH 0 DO LCD_BUF I + C@ _data! LOOP
|
2020-11-10 20:30:37 -05:00
|
|
|
DUP _atrow! _tocol NIP 1+ _col!
|
|
|
|
FNTH 0 DO LCD_BUF FNTH + I + C@ _data! LOOP ;
|