mirror of
https://github.com/V2RetroComputing/analog.git
synced 2024-12-04 12:49:18 +00:00
f2b9d0ff8a
Remove stubs for old flash programming method. New version uses a dedicated mode to allow access to littlefs from the Apple II.
43 lines
1.0 KiB
C
43 lines
1.0 KiB
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include "common/buffers.h"
|
|
|
|
enum {
|
|
SOFTSW_TEXT_MODE = 0x01,
|
|
SOFTSW_MIX_MODE = 0x02,
|
|
SOFTSW_HIRES_MODE = 0x04,
|
|
SOFTSW_MODE_MASK = 0x07,
|
|
|
|
SOFTSW_PAGE_2 = 0x08,
|
|
};
|
|
|
|
#define text_memory text_p1
|
|
#define hires_memory hgr_p1
|
|
#define videx_memory (private_memory+0xF000)
|
|
|
|
extern volatile uint32_t soft_switches;
|
|
extern uint8_t character_rom[2048];
|
|
extern uint8_t terminal_rom[2048];
|
|
|
|
extern volatile uint8_t videx_crtc_reg;
|
|
extern volatile uint8_t videx_addr;
|
|
|
|
extern volatile uint8_t terminal_switches;
|
|
#define terminal_tbcolor apple_memory[0xC022]
|
|
#define terminal_border apple_memory[0xC034]
|
|
|
|
enum {
|
|
TERMINAL_80COL = 0x01,
|
|
TERMINAL_DGR = 0x02,
|
|
TERMINAL_AUX_WRITE = 0x10,
|
|
TERMINAL_TEST = 0x20,
|
|
TERMINAL_IIE_REGS = 0x40,
|
|
TERMINAL_IIGS_REGS = 0x80,
|
|
};
|
|
|
|
#define TERMINAL_FORE (terminal_tbcolor & 0xf)
|
|
#define TERMINAL_BACK ((terminal_tbcolor>>4) & 0xf)
|
|
#define TERMINAL_BORDER (terminal_border & 0xf)
|
|
|