10#define __SHADOW_REG extern volatile uint8_t
11#define __REG(addr) volatile __at (addr) uint8_t
14#define PPUCTRL_NMI 0b10000000
15#define PPUCTRL_SPR_8X8 0b00000000
16#define PPUCTRL_SPR_8X16 0b00100000
17#define PPUCTRL_BG_CHR 0b00010000
18#define PPUCTRL_SPR_CHR 0b00001000
19#define PPUCTRL_INC32 0b00000100
23#define PPUMASK_BLUE 0b10000000
24#define PPUMASK_RED 0b01000000
25#define PPUMASK_GREEN 0b00100000
26#define PPUMASK_SHOW_SPR 0b00010000
27#define PPUMASK_SHOW_BG 0b00001000
28#define PPUMASK_SHOW_SPR_LC 0b00000100
29#define PPUMASK_SHOW_BG_LC 0b00000010
30#define PPUMASK_MONOCHROME 0b00000001
41#define DEVICE_SCREEN_X_OFFSET 0
42#define DEVICE_SCREEN_Y_OFFSET 0
43#define DEVICE_SCREEN_WIDTH 32
44#define DEVICE_SCREEN_HEIGHT 30
46#if defined(NES_TILEMAP_F)
48#define DEVICE_SCREEN_BUFFER_WIDTH 64
49#define DEVICE_SCREEN_BUFFER_HEIGHT 60
52#elif defined(NES_TILEMAP_H)
54#define DEVICE_SCREEN_BUFFER_WIDTH 64
55#define DEVICE_SCREEN_BUFFER_HEIGHT 30
58#elif defined(NES_TILEMAP_V)
60#define DEVICE_SCREEN_BUFFER_WIDTH 32
61#define DEVICE_SCREEN_BUFFER_HEIGHT 60
66#define DEVICE_SCREEN_BUFFER_WIDTH 32
67#define DEVICE_SCREEN_BUFFER_HEIGHT 30
72#define DEVICE_SCREEN_MAP_ENTRY_SIZE 1
73#define DEVICE_SPRITE_PX_OFFSET_X 0
74#define DEVICE_SPRITE_PX_OFFSET_Y -1
75#define DEVICE_WINDOW_PX_OFFSET_X 0
76#define DEVICE_WINDOW_PX_OFFSET_Y 0
77#define DEVICE_SCREEN_PX_WIDTH (DEVICE_SCREEN_WIDTH * 8)
78#define DEVICE_SCREEN_PX_HEIGHT (DEVICE_SCREEN_HEIGHT * 8)
91#define SCY_REG bkg_scroll_y
93#define SCX_REG bkg_scroll_x
95#define LY_REG _lcd_scanline
97#define LYC_REG _lcd_scanline
UINT8 UBYTE
Definition: types.h:62
__REG TAC_REG
Definition: hardware.h:94
__REG TIMA_REG
Definition: hardware.h:90
__REG TMA_REG
Definition: hardware.h:92
#define __REG(addr)
Definition: hardware.h:11
#define __SHADOW_REG
Definition: hardware.h:10
__SHADOW_REG _lcd_scanline
Definition: hardware.h:84
__SHADOW_REG shadow_PPUCTRL
Definition: hardware.h:20
__SHADOW_REG shadow_PPUMASK
Definition: hardware.h:31
unsigned short int uint16_t
Definition: stdint.h:52
unsigned char uint8_t
Definition: stdint.h:51