From aab0a49468c07a33156075bcf61b9530a341f4c3 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 13 Dec 2014 23:56:47 +0000 Subject: [PATCH] mtx: Initialize the VDP and use it for vt work Currently this is only half working - we init the vdp but have no font. We need to upload our own font as CP/M or other boot code might not be using the VDP display. --- Kernel/platform-mtx/mtx.s | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/Kernel/platform-mtx/mtx.s b/Kernel/platform-mtx/mtx.s index bf73df88..d8fbcf1c 100644 --- a/Kernel/platform-mtx/mtx.s +++ b/Kernel/platform-mtx/mtx.s @@ -1,12 +1,5 @@ ; -; Z80Pack hardware support -; -; -; This goes straight after udata for common. Because of that the first -; 256 bytes get swapped to and from disk with the uarea (512 byte disk -; blocks). This isn't a problem but don't put any variables in here. -; -; If you make this module any shorter, check what follows next +; MTX512 hardware support ; @@ -42,6 +35,9 @@ .globl nmi_handler .globl interrupt_handler + .globl vdpinit + .globl _vtinit + .globl outcharhex .globl outhl, outde, outbc .globl outnewline @@ -88,6 +84,9 @@ init_hardware: call _program_vectors pop hl + ; Program the video engine + call vdpinit + ; FIXME: set up interrupt timer on the CTC ; 08 is channel 0, which is input for vdp ; 09 is channel 1, output for DART ser 0 } fed 4MHz/13 @@ -96,6 +95,9 @@ init_hardware: ; 0C-0F are A data, B data, A ctrl, B ctrl im 1 ; set CPU interrupt mode + + call _vtinit ; init the console video + ret _sil_memcpy: -- 2.34.1