mirror of
https://github.com/cc65/cc65.git
synced 2025-02-23 03:29:00 +00:00
Added RAM_BANK and ROM_BANK macro definitions to cx16.h header.
This commit is contained in:
parent
6e61093e79
commit
ffc30c0c6e
@ -278,6 +278,9 @@ struct __vera {
|
|||||||
#define VIA1 (*(volatile struct __6522 *)0x9F60)
|
#define VIA1 (*(volatile struct __6522 *)0x9F60)
|
||||||
#define VIA2 (*(volatile struct __6522 *)0x9F70)
|
#define VIA2 (*(volatile struct __6522 *)0x9F70)
|
||||||
|
|
||||||
|
#define RAM_BANK (VIA1.pra)
|
||||||
|
#define ROM_BANK (VIA1.prb)
|
||||||
|
|
||||||
/* A structure with the x16emu's settings registers */
|
/* A structure with the x16emu's settings registers */
|
||||||
struct __emul {
|
struct __emul {
|
||||||
unsigned char debug; /* Boolean: debugging enabled */
|
unsigned char debug; /* Boolean: debugging enabled */
|
||||||
@ -295,7 +298,7 @@ struct __emul {
|
|||||||
#define EMULATOR (*(volatile struct __emul *)0x9FB0)
|
#define EMULATOR (*(volatile struct __emul *)0x9FB0)
|
||||||
|
|
||||||
/* An array window into the half Mebibyte or two Mebibytes of banked RAM */
|
/* 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)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user