vdp1: Allow the VDP location to be defined not hard coded
authorAlan Cox <alan@linux.intel.com>
Sat, 13 Dec 2014 22:48:12 +0000 (22:48 +0000)
committerAlan Cox <alan@linux.intel.com>
Sat, 13 Dec 2014 22:48:12 +0000 (22:48 +0000)
Not everything with a 9918 in it is an MSX box...

Kernel/dev/vdp1.s
Kernel/platform-msx1/kernel.def

index 7e0ddab..8d2b464 100644 (file)
@@ -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...
index fb9d5ca..a9f3e9c 100644 (file)
@@ -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