trunk/src/emu/cpu/scudsp/scudspdasm.c
| r20736 | r20737 | |
| 24 | 24 | EA_DMADSTMEM, |
| 25 | 25 | EA_DSTMEM, |
| 26 | 26 | EA_MVIDSTMEM, |
| 27 | EA_FLAGS, |
| 28 | EA_DMASRCMEM |
| 29 | |
| 27 | 30 | }; |
| 28 | 31 | |
| 29 | 32 | struct SCUDSP_OPCODE { |
| 30 | 33 | char mnemonic[32]; |
| 31 | 34 | int address_mode_1; |
| 32 | 35 | int address_mode_2; |
| 33 | | int address_mode_3, |
| 36 | int address_mode_3; |
| 34 | 37 | }; |
| 35 | 38 | |
| 36 | 39 | static const SCUDSP_OPCODE alu_table[16] = |
| r20736 | r20737 | |
| 95 | 98 | { |
| 96 | 99 | { "DMA", EA_D0, EA_DMADSTMEM, EA_IMM8, }, /* 000 */ // "DMA%H%A D0,%M,%I", |
| 97 | 100 | { "DMA", EA_DMASRCMEM, EA_D0, EA_IMM8, }, /* 001 */ // "DMA%H%A %s,D0,%I", |
| 98 | | { "DMA", 0, 0, 0, }, /* 010 */ // "DMA%H%A D0,%M,%s", |
| 101 | { "DMA", 0, 0, 0, }, /* 010 */ // "DMA%H%A D0,%M,%s", |
| 99 | 102 | { "DMA", 0, 0, 0, }, /* 011 */ // "DMA%H%A %s,D0,%s", |
| 100 | 103 | { "DMAH", EA_D0, EA_DMADSTMEM, EA_IMM8, }, /* 100 */ // "DMA%H%A D0,%M,%I", |
| 101 | 104 | { "DMAH", EA_DMASRCMEM, EA_D0, EA_IMM8, }, /* 101 */ // "DMA%H%A %s,D0,%I", |
| r20736 | r20737 | |
| 206 | 209 | /*****************************************************************************/ |
| 207 | 210 | |
| 208 | 211 | static char *output; |
| 209 | | static const UINT32 *rombase; |
| 212 | static const UINT8 *rombase; |
| 210 | 213 | |
| 211 | 214 | static void ATTR_PRINTF(1,2) print(const char *fmt, ...) |
| 212 | 215 | { |
| r20736 | r20737 | |
| 236 | 239 | |
| 237 | 240 | static UINT32 decode_opcode(UINT32 pc, const SCUDSP_OPCODE *op_table,UINT32 cur_opcode) |
| 238 | 241 | { |
| 239 | | INT8 rel8; |
| 240 | | UINT32 imm32; |
| 241 | | UINT8 op2; |
| 242 | // INT8 rel8; |
| 243 | // UINT32 imm32; |
| 244 | // UINT8 op2; |
| 242 | 245 | UINT32 flags = 0; |
| 243 | 246 | |
| 244 | 247 | //if (!strcmp(op_table->mnemonic, "jsr") || !strcmp(op_table->mnemonic, "bsr")) |
trunk/src/mame/video/stvvdp1.c
| r20736 | r20737 | |
| 194 | 194 | |
| 195 | 195 | return modr; |
| 196 | 196 | default: |
| 197 | if(!space.debugger_access()) |
| 197 | 198 | printf ("cpu %s (PC=%08X) VDP1: Read from Registers, Offset %04x\n", space.device().tag(), space.device().safe_pc(), offset*2); |
| 198 | 199 | break; |
| 199 | 200 | } |
| r20736 | r20737 | |
| 1985 | 1986 | break; |
| 1986 | 1987 | |
| 1987 | 1988 | case 0x0005: |
| 1988 | | // case 0x0007: // mirror? |
| 1989 | // case 0x0007: // mirror? Baroque uses it, crashes for whatever reason |
| 1989 | 1990 | if (VDP1_LOG) logerror ("Sprite List Polyline\n"); |
| 1990 | 1991 | stv2_current_sprite.ispoly = 1; |
| 1991 | 1992 | stv_vdp1_draw_poly_line(machine, *cliprect); |
| r20736 | r20737 | |
| 1998 | 1999 | break; |
| 1999 | 2000 | |
| 2000 | 2001 | case 0x0008: |
| 2001 | | // case 0x000b: // mirror? |
| 2002 | // case 0x000b: // mirror? Bug 2 |
| 2002 | 2003 | if (VDP1_LOG) logerror ("Sprite List Set Command for User Clipping (%d,%d),(%d,%d)\n", stv2_current_sprite.CMDXA, stv2_current_sprite.CMDYA, stv2_current_sprite.CMDXC, stv2_current_sprite.CMDYC); |
| 2003 | 2004 | state->m_vdp1.user_cliprect.set(stv2_current_sprite.CMDXA, stv2_current_sprite.CMDXC, stv2_current_sprite.CMDYA, stv2_current_sprite.CMDYC); |
| 2004 | 2005 | break; |
trunk/src/mame/drivers/saturn.c
| r20736 | r20737 | |
| 850 | 850 | } |
| 851 | 851 | } |
| 852 | 852 | |
| 853 | /* Note: unused bits must stay high, Bug 2 relies on this. */ |
| 853 | 854 | #define SATURN_PAD_P1(_mask_, _val_) \ |
| 854 | 855 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) PORT_CONDITION("INPUT_TYPE", _mask_, EQUALS, _val_) \ |
| 855 | 856 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) PORT_CONDITION("INPUT_TYPE", _mask_, EQUALS, _val_) \ |
| r20736 | r20737 | |
| 864 | 865 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("P1 Y") PORT_PLAYER(1) PORT_CONDITION("INPUT_TYPE", _mask_, EQUALS, _val_) \ |
| 865 | 866 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_NAME("P1 Z") PORT_PLAYER(1) PORT_CONDITION("INPUT_TYPE", _mask_, EQUALS, _val_) \ |
| 866 | 867 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_BUTTON7 ) PORT_NAME("P1 L") PORT_PLAYER(1) PORT_CONDITION("INPUT_TYPE", _mask_, EQUALS, _val_) \ |
| 867 | | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CONDITION("INPUT_TYPE", _mask_, EQUALS, _val_) \ |
| 868 | | PORT_BIT( 0x0003, IP_ACTIVE_HIGH, IPT_UNUSED ) PORT_CONDITION("INPUT_TYPE", _mask_, EQUALS, _val_) |
| 868 | PORT_BIT( 0x0007, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CONDITION("INPUT_TYPE", _mask_, EQUALS, _val_) |
| 869 | 869 | |
| 870 | | |
| 871 | 870 | #define SATURN_PAD_P2(_mask_, _val_) \ |
| 872 | 871 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) PORT_CONDITION("INPUT_TYPE", _mask_, EQUALS, _val_) \ |
| 873 | 872 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) PORT_CONDITION("INPUT_TYPE", _mask_, EQUALS, _val_) \ |
| r20736 | r20737 | |
| 882 | 881 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("P2 Y") PORT_PLAYER(2) PORT_CONDITION("INPUT_TYPE", _mask_, EQUALS, _val_) \ |
| 883 | 882 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_NAME("P2 Z") PORT_PLAYER(2) PORT_CONDITION("INPUT_TYPE", _mask_, EQUALS, _val_) \ |
| 884 | 883 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_BUTTON7 ) PORT_NAME("P2 L") PORT_PLAYER(2) PORT_CONDITION("INPUT_TYPE", _mask_, EQUALS, _val_) \ |
| 885 | | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CONDITION("INPUT_TYPE", _mask_, EQUALS, _val_) \ |
| 886 | | PORT_BIT( 0x0003, IP_ACTIVE_HIGH, IPT_UNUSED ) PORT_CONDITION("INPUT_TYPE", _mask_, EQUALS, _val_) |
| 884 | PORT_BIT( 0x0007, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CONDITION("INPUT_TYPE", _mask_, EQUALS, _val_) |
| 887 | 885 | |
| 888 | 886 | #define MD_PAD_P1(_mask_, _val_) \ |
| 889 | 887 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) PORT_CONDITION("INPUT_TYPE", _mask_, EQUALS, _val_) \ |