From 0ddd8a6f16380fa1c290179c4e788a85d8ae005c Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Sun, 25 Nov 2001 21:22:16 +0000 Subject: [PATCH] Fixup work in the video subr. --- src/lib/video_subr.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/lib/video_subr.c b/src/lib/video_subr.c index bdb7557f64..7233de4b0c 100644 --- a/src/lib/video_subr.c +++ b/src/lib/video_subr.c @@ -1,13 +1,14 @@ #include -# error the video display code has not been tested +#include +# This used to work but has not been tested recently. // kludgy but this is only used here ... static char *vidmem; /* The video buffer, should be replaced by symbol in ldscript.ld */ static int video_line, video_col; #define LINES 25 /* Number of lines and */ #define COLS 80 /* columns on display */ -#define VIDBUFFER 0x20000; +#define VIDBUFFER 0xA000; void video_init(void) { @@ -34,8 +35,8 @@ void video_tx_byte(unsigned char byte) video_col = 0; } else { - videmem[((video_col + (video_line *COLS)) * 2)] = byte; - videmem[((video_col + (video_line *COLS)) * 2) +1] = 0x07; + vidmem[((video_col + (video_line *COLS)) * 2)] = byte; + vidmem[((video_col + (video_line *COLS)) * 2) +1] = 0x07; video_col++; } if (video_col >= COLS) {