some fix for m4510 core:

- banking in read and write operations
- jsr and jsrx instruction
This commit is contained in:
Roberto Zandona 2008-08-23 10:00:59 +00:00
parent 73e2b28ee0
commit bfc0c6a5b2
2 changed files with 4 additions and 4 deletions

View File

@ -56,8 +56,8 @@
#define PEEK_OP() cpu_readop(M4510_MEM(PCD))
#define RDMEM(addr) program_read_byte_8le(addr); m4510_ICount -= 1
#define WRMEM(addr,data) program_write_byte_8le(addr,data); m4510_ICount -= 1
#define RDMEM(addr) program_read_byte_8le(M4510_MEM(addr)); m4510_ICount -= 1
#define WRMEM(addr,data) program_write_byte_8le(M4510_MEM(addr),data); m4510_ICount -= 1
/***************************************************************
* RDOP read an opcode

View File

@ -557,7 +557,7 @@
PUSH(PCL); \
EAH = RDOPARG(); \
PCL = RDMEM(EAD); \
PCH = RDMEM(EAD); \
PCH = RDMEM(EAD+1); \
CHANGE_PC
/* 65ce02 ******************************************************
@ -571,7 +571,7 @@
PUSH(PCL); \
EAH = RDOPARG(); \
PCL = RDMEM(EAD); \
PCH = RDMEM(EAD); \
PCH = RDMEM(EAD+1); \
CHANGE_PC
/* 65ce02 ******************************************************