1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-04 02:29:31 +00:00

Added RAM_BANK and ROM_BANK macro definitions to cx16.h header.

This commit is contained in:
Greg King 2021-04-18 01:39:44 -04:00
parent 6e61093e79
commit ffc30c0c6e

View File

@ -278,6 +278,9 @@ struct __vera {
#define VIA1 (*(volatile struct __6522 *)0x9F60)
#define VIA2 (*(volatile struct __6522 *)0x9F70)
#define RAM_BANK (VIA1.pra)
#define ROM_BANK (VIA1.prb)
/* A structure with the x16emu's settings registers */
struct __emul {
unsigned char debug; /* Boolean: debugging enabled */
@ -295,7 +298,7 @@ struct __emul {
#define EMULATOR (*(volatile struct __emul *)0x9FB0)
/* An array window into the half Mebibyte or two Mebibytes of banked RAM */
#define BANK_RAM ((unsigned char[0x2000])0xA000)
#define BANK_RAM ((unsigned char *)0xA000)