Added the missing BANK_RAM array to the Commander X16's header.
This commit is contained in:
@@ -77,7 +77,8 @@
|
|||||||
#define COLOR_LIGHTBLUE 0x0E
|
#define COLOR_LIGHTBLUE 0x0E
|
||||||
#define COLOR_GRAY3 0x0F
|
#define COLOR_GRAY3 0x0F
|
||||||
|
|
||||||
/* Masks for joy_read() */
|
/* NES controller masks for joy_read() */
|
||||||
|
|
||||||
#define JOY_BTN_1_MASK 0x80
|
#define JOY_BTN_1_MASK 0x80
|
||||||
#define JOY_BTN_2_MASK 0x40
|
#define JOY_BTN_2_MASK 0x40
|
||||||
#define JOY_BTN_3_MASK 0x20
|
#define JOY_BTN_3_MASK 0x20
|
||||||
@@ -115,7 +116,7 @@
|
|||||||
#define TV_NTSC_MONO 6
|
#define TV_NTSC_MONO 6
|
||||||
#define TV_RGB2 7
|
#define TV_RGB2 7
|
||||||
|
|
||||||
/* Video modes */
|
/* Video modes for videomode() */
|
||||||
#define VIDEOMODE_40x30 0x00
|
#define VIDEOMODE_40x30 0x00
|
||||||
#define VIDEOMODE_80x60 0x02
|
#define VIDEOMODE_80x60 0x02
|
||||||
#define VIDEOMODE_40COL VIDEOMODE_40x30
|
#define VIDEOMODE_40COL VIDEOMODE_40x30
|
||||||
@@ -130,11 +131,9 @@
|
|||||||
#define VERA_IRQ_UART 0b00001000
|
#define VERA_IRQ_UART 0b00001000
|
||||||
|
|
||||||
|
|
||||||
/* Define hardware */
|
/* Define hardware. */
|
||||||
|
|
||||||
/* Define a structure with the Video Enhanced Retro Adapter's
|
/* A structure with the Video Enhanced Retro Adapter's external registers */
|
||||||
** external registers.
|
|
||||||
*/
|
|
||||||
struct __vera {
|
struct __vera {
|
||||||
unsigned short address; /* Address for data ports */
|
unsigned short address; /* Address for data ports */
|
||||||
unsigned char address_hi;
|
unsigned char address_hi;
|
||||||
@@ -150,7 +149,7 @@ 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 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 */
|
||||||
unsigned char vera_action; /* Boolean: displaying VERA activity */
|
unsigned char vera_action; /* Boolean: displaying VERA activity */
|
||||||
@@ -164,6 +163,9 @@ struct __emul {
|
|||||||
};
|
};
|
||||||
#define EMULATOR (*(volatile struct __emul)0x9FB0)
|
#define EMULATOR (*(volatile struct __emul)0x9FB0)
|
||||||
|
|
||||||
|
/* An array window into the half Mibibyte or two Mibibytes of banked RAM */
|
||||||
|
#define BANK_RAM ((unsigned char[0x2000])0xA000)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* The addresses of the static drivers */
|
/* The addresses of the static drivers */
|
||||||
|
|||||||
Reference in New Issue
Block a user