From 20c38e5cd0fceb77aa5b3f85fd59ef31aa7782f8 Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Tue, 22 Dec 2020 18:22:06 -0500 Subject: [PATCH] trs80: implement Grid shim in video driver Loading the grid subsystem on top of the TRS-80 driver, which is an interface to its ROM BIOS, would be counter-productive because the BIOS already has the concept of cursor. However, VE needs the Grid interface, so we implement a shim for it. Again, all this work (and the re-assembly that it entails) has been done from within Collapse OS on the TRS-80! --- arch/z80/trs80/blk.fs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/z80/trs80/blk.fs b/arch/z80/trs80/blk.fs index 13c0eac..54ef74b 100644 --- a/arch/z80/trs80/blk.fs +++ b/arch/z80/trs80/blk.fs @@ -29,6 +29,8 @@ CODE AT-XY EXX, ( protect BC ) EXX, ( unprotect BC ) ;CODE ( ----- 604 ) : LINES 24 ; : COLS 80 ; +: XYMODE 0x70 RAM+ ; +: CELL! COLS /MOD AT-XY (emit) ; CODE BYE HL 0 LDdi, A 0x16 LDri, ( @EXIT )