mirror of
https://github.com/holub/mame
synced 2025-04-30 03:47:13 +03:00
some fix for m4510 core:
- banking in read and write operations - jsr and jsrx instruction
This commit is contained in:
parent
73e2b28ee0
commit
bfc0c6a5b2
@ -56,8 +56,8 @@
|
|||||||
|
|
||||||
#define PEEK_OP() cpu_readop(M4510_MEM(PCD))
|
#define PEEK_OP() cpu_readop(M4510_MEM(PCD))
|
||||||
|
|
||||||
#define RDMEM(addr) program_read_byte_8le(addr); m4510_ICount -= 1
|
#define RDMEM(addr) program_read_byte_8le(M4510_MEM(addr)); m4510_ICount -= 1
|
||||||
#define WRMEM(addr,data) program_write_byte_8le(addr,data); m4510_ICount -= 1
|
#define WRMEM(addr,data) program_write_byte_8le(M4510_MEM(addr),data); m4510_ICount -= 1
|
||||||
|
|
||||||
/***************************************************************
|
/***************************************************************
|
||||||
* RDOP read an opcode
|
* RDOP read an opcode
|
||||||
|
@ -557,7 +557,7 @@
|
|||||||
PUSH(PCL); \
|
PUSH(PCL); \
|
||||||
EAH = RDOPARG(); \
|
EAH = RDOPARG(); \
|
||||||
PCL = RDMEM(EAD); \
|
PCL = RDMEM(EAD); \
|
||||||
PCH = RDMEM(EAD); \
|
PCH = RDMEM(EAD+1); \
|
||||||
CHANGE_PC
|
CHANGE_PC
|
||||||
|
|
||||||
/* 65ce02 ******************************************************
|
/* 65ce02 ******************************************************
|
||||||
@ -571,7 +571,7 @@
|
|||||||
PUSH(PCL); \
|
PUSH(PCL); \
|
||||||
EAH = RDOPARG(); \
|
EAH = RDOPARG(); \
|
||||||
PCL = RDMEM(EAD); \
|
PCL = RDMEM(EAD); \
|
||||||
PCH = RDMEM(EAD); \
|
PCH = RDMEM(EAD+1); \
|
||||||
CHANGE_PC
|
CHANGE_PC
|
||||||
|
|
||||||
/* 65ce02 ******************************************************
|
/* 65ce02 ******************************************************
|
||||||
|
Loading…
Reference in New Issue
Block a user