collapseos/recipes/ti84/xcomp.fs

31 lines
687 B
Forth
Raw Normal View History

2020-05-08 06:50:34 -04:00
0x8000 CONSTANT RAMSTART
0xb000 CONSTANT RS_ADDR
RAMSTART 0x70 + CONSTANT LCD_MEM
2020-05-09 11:55:58 -04:00
0x01 CONSTANT KBD_PORT
2020-05-08 06:50:34 -04:00
212 LOAD ( z80 assembler )
262 LOAD ( xcomp )
522 LOAD ( font compiler )
2020-05-08 06:50:34 -04:00
: CODE XCODE ;
: IMMEDIATE XIMM ;
: (entry) (xentry) ;
2020-05-09 11:55:58 -04:00
: CREATE XCREATE ; ( for KBD tbls )
2020-05-08 06:50:34 -04:00
: : [ ' X: , ] ;
CURRENT @ XCURRENT !
282 LOAD ( boot.z80 )
393 LOAD ( icore low )
2020-05-09 11:55:58 -04:00
555 557 LOADR ( LCD low )
566 569 LOADR ( KBD low )
415 LOAD ( icore high )
(entry) ~FNT CPFNT3x5
2020-05-08 06:50:34 -04:00
(entry) _
( Update LATEST )
PC ORG @ 8 + !
422 437 XPACKR ( core )
2020-05-09 11:55:58 -04:00
558 560 XPACKR ( LCD high )
438 446 XPACKR ( print fmt )
2020-05-09 11:55:58 -04:00
," : _ LCD$ LIT< Hello (print) (key) (emit) BYE ; _ "
2020-05-08 06:50:34 -04:00
ORG @ 256 /MOD 2 PC! 2 PC!
H@ 256 /MOD 2 PC! 2 PC!