mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-24 14:28:06 +11:00
b90efb0f7f
On the emulator of course...
14 lines
356 B
Plaintext
14 lines
356 B
Plaintext
: _cmd LCD_PORT_CMD PC! LCDWAIT ;
|
|
: _data! LCD_PORT_DATA PC! LCDWAIT ;
|
|
: _data@ LCD_PORT_DATA PC@ LCDWAIT ;
|
|
: LCDOFF 0x02 ( CMD_DISABLE ) _cmd ;
|
|
: LCDON 0x03 ( CMD_ENABLE ) _cmd ;
|
|
: _col! ( col -- )
|
|
0x20 ( CMD_COL ) + _cmd ;
|
|
: _row! ( row -- )
|
|
0x80 ( CMD_ROW ) + _cmd ;
|
|
: LCD$
|
|
H@ TI_MEM ! FNTH 2 * 2+ ALLOT
|
|
LCDON 0x01 ( 8-bit mode ) _cmd
|
|
;
|