|
#define | VIC2_IOMODE 0 |
|
#define | VIC3_IOMODE 1 |
|
#define | VIC_BAD_IOMODE 2 |
|
#define | VIC4_IOMODE 3 |
|
#define | PAL_LINE_FREQ 31250.0 |
|
#define | NTSC_LINE_FREQ 31468.5 |
|
#define | PAL_FRAME_TIME 20000 |
|
#define | NTSC_FRAME_TIME ((int)(16683.35)) |
|
#define | TEXTURE_WIDTH 800 |
|
#define | TEXTURE_HEIGHT 625 |
|
#define | PHYSICAL_RASTERS_DEFAULT PHYSICAL_RASTERS_NTSC |
|
#define | SCREEN_HEIGHT_VISIBLE_DEFAULT SCREEN_HEIGHT_VISIBLE_NTSC |
|
#define | SCREEN_HEIGHT_VISIBLE_NTSC 480 |
|
#define | SCREEN_HEIGHT_VISIBLE_PAL 576 |
|
#define | PHYSICAL_RASTERS_NTSC 526 |
|
#define | PHYSICAL_RASTERS_PAL 624 |
|
#define | FRAME_H_FRONT 0 |
|
#define | RASTER_CORRECTION 3 |
|
#define | VIC4_BLINK_INTERVAL 30 |
|
#define | REG_EBM (vic_registers[0x11] & 0x40) |
|
#define | REG_MCM (vic_registers[0x16] & 0x10) |
|
#define | REG_BMM (vic_registers[0x11] & 0x20) |
|
#define | REG_SPRITE_ENABLE vic_registers[0x15] |
|
#define | REG_BORDER_COLOR (vic_registers[0x20] & vic_color_register_mask) |
|
#define | REG_SCREEN_COLOR (vic_registers[0x21] & vic_color_register_mask) |
|
#define | REG_MULTICOLOR_1 (vic_registers[0x22] & vic_color_register_mask) |
|
#define | REG_MULTICOLOR_2 (vic_registers[0x23] & vic_color_register_mask) |
|
#define | REG_H640 (vic_registers[0x31] & 128) |
|
#define | REG_V400 (vic_registers[0x31] & 8) |
|
#define | REG_VICIII_ATTRIBS (vic_registers[0x31] & 0x20) |
|
#define | REG_RSEL (vic_registers[0x11] & 8) |
|
#define | REG_CSEL (vic_registers[0x16] & 8) |
|
#define | REG_DISPLAYENABLE (vic_registers[0x11] & 0x10) |
|
#define | REG_VIC2_XSCROLL (vic_registers[0x16] & 7) |
|
#define | REG_VIC2_YSCROLL (vic_registers[0x11] & 7) |
|
#define | REG_TBRDPOS (vic_registers[0x48]) |
|
#define | REG_SPRBPMEN_0_3 (vic_registers[0x49] >> 4) |
|
#define | REG_SPRBPMEN_4_7 (vic_registers[0x4B] >> 4) |
|
#define | REG_TBRDPOS_U4 (vic_registers[0x49] & 0xF) |
|
#define | REG_BBRDPOS (vic_registers[0x4A]) |
|
#define | REG_BBRDPOS_U4 (vic_registers[0x4B] & 0xF) |
|
#define | REG_TEXTXPOS (vic_registers[0x4C]) |
|
#define | REG_TEXTXPOS_U4 (vic_registers[0x4D] & 0xF) |
|
#define | REG_SPRTILEN ((vic_registers[0x4D] >> 4) | (vic_registers[0x4F] & 0xF0)) |
|
#define | REG_TEXTYPOS (vic_registers[0x4E]) |
|
#define | REG_TEXTYPOS_U4 (vic_registers[0x4F] & 0xF) |
|
#define | REG_FNRST (vic_registers[0x53] & 0x80) |
|
#define | REG_16BITCHARSET (vic_registers[0x54] & 1) |
|
#define | REG_FCLRLO (vic_registers[0x54] & 2) |
|
#define | REG_FCLRHI (vic_registers[0x54] & 4) |
|
#define | REG_SPR640 (vic_registers[0x54] & 0x10) |
|
#define | REG_SPRHGHT (vic_registers[0x56]) |
|
#define | REG_CHRYSCL (vic_registers[0x5B]) |
|
#define | REG_SIDBDRWD (vic_registers[0x5C]) |
|
#define | REG_SIDBDRWD_U5 (vic_registers[0x5D] & 0x3F) |
|
#define | REG_HOTREG (vic_registers[0x5D] & 0x80) |
|
#define | REG_LINESTEP vic_registers[0x58] |
|
#define | REG_LINESTEP_U8 vic_registers[0x59] |
|
#define | REG_CHARXSCALE vic_registers[0x5A] |
|
#define | REG_CHRCOUNT vic_registers[0x5E] |
|
#define | REG_SCRNPTR_B0 vic_registers[0x60] |
|
#define | REG_SCRNPTR_B1 vic_registers[0x61] |
|
#define | REG_SCRNPTR_B2 vic_registers[0x62] |
|
#define | REG_SCRNPTR_B3 (vic_registers[0x63] & 0xF) |
|
#define | REG_COLPTR vic_registers[0x64] |
|
#define | REG_COLPTR_MSB vic_registers[0x65] |
|
#define | REG_CHARPTR_B0 vic_registers[0x68] |
|
#define | REG_CHARPTR_B1 vic_registers[0x69] |
|
#define | REG_CHARPTR_B2 vic_registers[0x6A] |
|
#define | REG_SPRPTR_B0 vic_registers[0x6C] |
|
#define | REG_SPRPTR_B1 vic_registers[0x6D] |
|
#define | REG_SPRPTR_B2 (vic_registers[0x6E] & 0x7F) |
|
#define | REG_SPRITE_Y_ADJUST vic_registers[0x72] |
|
#define | SINGLE_SIDE_BORDER (((Uint16)REG_SIDBDRWD) | (REG_SIDBDRWD_U5) << 8) |
|
#define | BORDER_Y_TOP (((Uint16)REG_TBRDPOS) | (REG_TBRDPOS_U4) << 8) |
|
#define | BORDER_Y_BOTTOM (((Uint16)REG_BBRDPOS) | (REG_BBRDPOS_U4) << 8) |
|
#define | CHARGEN_Y_START (((Uint16)REG_TEXTYPOS) | (REG_TEXTYPOS_U4) << 8) |
|
#define | CHARGEN_X_START (((Uint16)REG_TEXTXPOS) | (REG_TEXTXPOS_U4) << 8) |
|
#define | LINESTEP_BYTES (((Uint16)REG_LINESTEP) | (REG_LINESTEP_U8) << 8) |
|
#define | SCREEN_ADDR ((Uint32)REG_SCRNPTR_B0 | (REG_SCRNPTR_B1<<8) | (REG_SCRNPTR_B2 <<16) | (REG_SCRNPTR_B3 << 24)) |
|
#define | CHARSET_ADDR ((Uint32)REG_CHARPTR_B0 | (REG_CHARPTR_B1<<8) | (REG_CHARPTR_B2 <<16)) |
|
#define | VIC2_BITMAP_ADDR ((CHARSET_ADDR) & 0xFFE000) |
|
#define | SPRITE_POINTER_ADDR ((Uint32)REG_SPRPTR_B0 | (REG_SPRPTR_B1<<8) | (REG_SPRPTR_B2 <<16)) |
|
#define | COLOUR_RAM_OFFSET ((((Uint16)REG_COLPTR) | (REG_COLPTR_MSB) << 8)) |
|
#define | SPRITE_POS_Y(n) |
|
#define | SPRITE_POS_X(n) |
|
#define | SPRITE_COLOR(n) (vic_registers[0x27+(n)] & vic_color_register_mask) |
|
#define | SPRITE_COLOR_4BIT(n) (vic_registers[0x27+(n)] & 0xF) |
|
#define | SPRITE_MULTICOLOR_1 (vic_registers[0x25] & vic_color_register_mask) |
|
#define | SPRITE_MULTICOLOR_2 (vic_registers[0x26] & vic_color_register_mask) |
|
#define | SPRITE_IS_BACK(n) (vic_registers[0x1B] & (1 << (n))) |
|
#define | SPRITE_HORZ_2X(n) (vic_registers[0x1D] & (1 << (n))) |
|
#define | SPRITE_VERT_2X(n) (vic_registers[0x17] & (1 << (n))) |
|
#define | SPRITE_MULTICOLOR(n) (vic_registers[0x1C] & (1 << (n))) |
|
#define | SPRITE_16COLOR(n) (vic_registers[0x6B] & (1 << (n))) |
|
#define | SPRITE_EXTWIDTH(n) (SPRITE_16COLOR(n) | (vic_registers[0x57] & (1 << (n)))) |
|
#define | SPRITE_EXTHEIGHT(n) (vic_registers[0x55] & (1 << (n))) |
|
#define | SPRITE_BITPLANE_ENABLE(n) (((REG_SPRBPMEN_4_7) << 4 | REG_SPRBPMEN_0_3) & (1 << (n))) |
|
#define | SPRITE_16BITPOINTER (vic_registers[0x6E] & 0x80) |
|
#define | SPRITE_V400(n) (vic_registers[0x76] & (1 << (n))) |
|
#define | VIC3_ATTR_BLINK(c) ((c) & 0x1) |
|
#define | VIC3_ATTR_REVERSE(c) ((c) & 0x2) |
|
#define | VIC3_ATTR_BOLD(c) ((c) & 0x4) |
|
#define | VIC3_ATTR_UNDERLINE(c) ((c) & 0x8) |
|
#define | CHAR_IS256_COLOR(ch) (REG_FCLRLO && (ch) < 0x100) || (REG_FCLRHI && (ch) > 0x0FF) |
|
#define | SXA_TRIM_RIGHT_BITS012(sw) ((sw) >> 13) |
|
#define | SXA_VERTICAL_FLIP(cw) ((cw) & 0x8000) |
|
#define | SXA_HORIZONTAL_FLIP(cw) ((cw) & 0x4000) |
|
#define | SXA_GOTO_X(cw) ((cw) & 0x1000) |
|
#define | SXA_4BIT_PER_PIXEL(cw) ((cw) & 0x0800) |
|
#define | SXA_TRIM_RIGHT_BIT3(cw) ((cw) & 0x0400) |
|
#define | SXA_ATTR_BOLD(cw) ((cw) & 0x0040) |
|
#define | SXA_ATTR_REVERSE(cw) ((cw) & 0x0020) |
|
#define | SET_11BIT_REG(basereg, x) |
|
#define | SET_12BIT_REG(basereg, x) |
|
#define | SET_14BIT_REG(basereg, x) |
|
#define | SET_16BIT_REG(basereg, x) |
|
#define | SET_PHYSICAL_RASTER(x) SET_11BIT_REG(0x52, (x)) |
|
#define | SET_BORDER_Y_TOP(x) SET_12BIT_REG(0x48, (x)) |
|
#define | SET_BORDER_Y_BOTTOM(x) SET_12BIT_REG(0x4A, (x)) |
|
#define | SET_CHARGEN_X_START(x) SET_12BIT_REG(0x4C, (x)) |
|
#define | SET_CHARGEN_Y_START(x) SET_12BIT_REG(0x4E, (x)) |
|
#define | SET_COLORRAM_BASE(x) SET_16BIT_REG(0x64,(x)) |
|
#define | SET_LINESTEP_BYTES(x) SET_16BIT_REG(0x58,(x)) |
|
#define | SPRITE_FIRST_X 31 |
|