From 4016014641d884a21118602fb39ebe5969dcb1e8 Mon Sep 17 00:00:00 2001 From: giomba Date: Sun, 22 Oct 2023 22:08:06 +0200 Subject: [PATCH] Expose video memory address. --- src/video.c | 2 +- src/video.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/video.c b/src/video.c index 38f5174..5045fac 100644 --- a/src/video.c +++ b/src/video.c @@ -2,7 +2,7 @@ #include -static char *const VIDEO_MEMORY = (char *)0xd000; +char *const VIDEO_MEMORY = (char *)0xd000; static uint16_t offset = 0; void video_putchar(char c) { diff --git a/src/video.h b/src/video.h index 72d851d..0d23cef 100644 --- a/src/video.h +++ b/src/video.h @@ -3,6 +3,8 @@ #include +extern char *const VIDEO_MEMORY; + void video_cls(void); void video_put(uint8_t x, uint8_t y, char c); void video_putchar(char c);