Implemented STS DIR

This commit is contained in:
Angelo Salese 2011-09-10 18:59:39 +00:00
parent 9f6f34141e
commit 106c76ce8c
3 changed files with 18 additions and 9 deletions

View File

@ -2987,6 +2987,20 @@ static void HC11OP(std_indy)(hc11_state *cpustate)
CYCLES(cpustate, 6);
}
/* STS DIR 0x9F */
static void HC11OP(sts_dir)(hc11_state *cpustate)
{
UINT8 d = FETCH(cpustate);
UINT16 r = cpustate->sp;
CLEAR_NZV(cpustate);
WRITE8(cpustate, d, (r & 0xff00) >> 8);
WRITE8(cpustate, d + 1, (r & 0xff));
SET_N16(r);
SET_Z16(r);
CYCLES(cpustate, 4);
}
/* STX DIR 0xDF */
static void HC11OP(stx_dir)(hc11_state *cpustate)
{

View File

@ -271,7 +271,7 @@ static const hc11_opcode_list_struct hc11_opcode_list[] =
{ 0, 0xfd, HC11OP(std_ext) },
{ 0, 0xed, HC11OP(std_indx) },
{ 0x18, 0xed, HC11OP(std_indy) },
// { 0, 0x9f, HC11OP(sts_dir) },
{ 0, 0x9f, HC11OP(sts_dir) },
// { 0, 0xbf, HC11OP(sts_ext) },
// { 0, 0xaf, HC11OP(sts_indx) },
// { 0x18, 0xaf, HC11OP(sts_indy) },

View File

@ -53,11 +53,6 @@ static SCREEN_UPDATE( 30test )
return 0;
}
static READ8_HANDLER( unk_r )
{
return 1;
}
static READ8_HANDLER(hc11_mux_r)
{
namco_30test_state *state = space->machine().driver_data<namco_30test_state>();
@ -128,8 +123,8 @@ ADDRESS_MAP_END
static ADDRESS_MAP_START( namco_30test_io, AS_IO, 8 )
AM_RANGE(MC68HC11_IO_PORTA,MC68HC11_IO_PORTA) AM_READ(namco_30test_mux_r)
AM_RANGE(MC68HC11_IO_PORTD,MC68HC11_IO_PORTD) AM_READ_PORT("SYSTEM")
AM_RANGE(MC68HC11_IO_PORTE,MC68HC11_IO_PORTE) AM_READ(unk_r)
// AM_RANGE(MC68HC11_IO_PORTD,MC68HC11_IO_PORTD) AM_READ_PORT("SYSTEM")
AM_RANGE(MC68HC11_IO_PORTE,MC68HC11_IO_PORTE) AM_READ_PORT("SYSTEM")
ADDRESS_MAP_END
@ -220,7 +215,7 @@ static MACHINE_RESET( 30test )
static const hc11_config namco_30test_config =
{
0, //has extended internal I/O
768, //internal RAM size
0,//768, //internal RAM size
0x00 //registers are at 0-0x100
};