Expose video memory address.

This commit is contained in:
giomba 2023-10-22 22:08:06 +02:00
parent be4f7c628f
commit 4016014641
2 changed files with 3 additions and 1 deletions

View File

@ -2,7 +2,7 @@
#include <stdint.h> #include <stdint.h>
static char *const VIDEO_MEMORY = (char *)0xd000; char *const VIDEO_MEMORY = (char *)0xd000;
static uint16_t offset = 0; static uint16_t offset = 0;
void video_putchar(char c) { void video_putchar(char c) {

View File

@ -3,6 +3,8 @@
#include <stdint.h> #include <stdint.h>
extern char *const VIDEO_MEMORY;
void video_cls(void); void video_cls(void);
void video_put(uint8_t x, uint8_t y, char c); void video_put(uint8_t x, uint8_t y, char c);
void video_putchar(char c); void video_putchar(char c);