2020-05-09 22:50:55 +10:00
|
|
|
( Required config: LCD_MEM )
|
|
|
|
: _mem+ [ LCD_MEM LITN ] @ + ;
|
2020-05-08 21:56:34 +10:00
|
|
|
: FNTW 3 ; : FNTH 5 ;
|
2020-11-11 12:30:37 +11:00
|
|
|
: COLS 96 FNTW 1+ / ; : LINES 64 FNTH 1+ / ;
|
2020-05-08 21:56:34 +10:00
|
|
|
( Wait until the lcd is ready to receive a command. It's a bit
|
|
|
|
weird to implement a waiting routine in asm, but the forth
|
|
|
|
version is a bit heavy and we don't want to wait longer than
|
|
|
|
we have to. )
|
2020-05-09 22:50:55 +10:00
|
|
|
CODE _wait
|
2020-05-08 21:56:34 +10:00
|
|
|
BEGIN,
|
2020-06-28 12:01:56 +10:00
|
|
|
0x10 ( CMD ) INAi,
|
2020-05-08 21:56:34 +10:00
|
|
|
RLA, ( When 7th bit is clr, we can send a new cmd )
|
|
|
|
JRC, AGAIN,
|
|
|
|
;CODE
|