From 4e5c40816a46de779e396daaf6e8b867026616a1 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 13 Dec 2014 22:48:12 +0000 Subject: [PATCH] vdp1: Allow the VDP location to be defined not hard coded Not everything with a 9918 in it is an MSX box... --- Kernel/dev/vdp1.s | 2 +- Kernel/platform-msx1/kernel.def | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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 -- 2.34.1