From: Alan Cox Date: Sat, 13 Dec 2014 22:48:12 +0000 (+0000) Subject: vdp1: Allow the VDP location to be defined not hard coded X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=4e5c40816a46de779e396daaf6e8b867026616a1;p=FUZIX.git vdp1: Allow the VDP location to be defined not hard coded Not everything with a 9918 in it is an MSX box... --- diff --git a/Kernel/dev/vdp1.s b/Kernel/dev/vdp1.s index 7e0ddab9..8d2b4640 100644 --- a/Kernel/dev/vdp1.s +++ b/Kernel/dev/vdp1.s @@ -29,7 +29,7 @@ vdpinit: ld de, #0x8000 ; M4 } call vdpout ld de, #0x8300 ; blink is unused call vdpout - ld de, #0x8401 ; font at 0x0800 + ld de, #0x8400 + VRAM_CH ; font at 0x0800 call vdpout ld de, #0x87F5 ; white text on black ; Fall through... diff --git a/Kernel/platform-msx1/kernel.def b/Kernel/platform-msx1/kernel.def index fb9d5ca5..a9f3e9c1 100644 --- a/Kernel/platform-msx1/kernel.def +++ b/Kernel/platform-msx1/kernel.def @@ -8,3 +8,7 @@ U_DATA_STASH .equ 0x7D00 ; 0x7D00-0x7FFF ; as far as I can tell either is allowed by the spec NMOS_Z80 .equ 1 + +; Where is the character font preloaded for us on this box + +VRAM_CH .equ 1 \ No newline at end of file