analog-firmware/vga/vgabuf.h

35 lines
1.0 KiB
C
Raw Normal View History

2023-04-06 03:53:21 +00:00
#pragma once
#include <stdint.h>
#include "common/buffers.h"
#define text_memory text_p1
#define hires_memory hgr_p1
#define terminal_memory (private_memory+0xF000)
extern uint8_t character_rom[4096];
extern uint8_t terminal_character_rom[4096];
extern volatile uint8_t terminal_row;
extern volatile uint8_t terminal_col;
#define apple_tbcolor apple_memory[0xC022]
#define apple_border apple_memory[0xC034]
#define APPLE_FORE ((terminal_tbcolor>>4) & 0xf)
#define APPLE_BACK (terminal_tbcolor & 0xf)
#define APPLE_BORDER (terminal_border & 0xf)
extern volatile uint32_t mono_palette;
extern volatile uint8_t terminal_tbcolor;
extern volatile uint8_t terminal_border;
#define TERMINAL_FORE ((terminal_tbcolor>>4) & 0xf)
#define TERMINAL_BACK (terminal_tbcolor & 0xf)
#define TERMINAL_BORDER (terminal_border & 0xf)
extern volatile uint8_t romx_type;
extern volatile uint8_t romx_unlocked;
extern volatile uint8_t romx_textbank;
extern volatile uint8_t romx_changed;