mirror of
https://github.com/captain-amygdala/pistorm.git
synced 2026-01-29 04:51:11 +00:00
Update m68kcpu.c
This commit is contained in:
@@ -1178,7 +1178,7 @@ void m68k_set_context(void* src)
|
||||
#if M68K_SEPARATE_READS
|
||||
/* Read data immediately following the PC */
|
||||
inline unsigned int m68k_read_immediate_16(unsigned int address) {
|
||||
#if M68K_EMULATE_PREFETCH == OPT_OFF
|
||||
#if M68K_EMULATE_PREFETCH == OPT_ON
|
||||
for (int i = 0; i < read_ranges; i++) {
|
||||
if(address >= read_addr[i] && address < read_upper[i]) {
|
||||
return be16toh(((unsigned short *)(read_data[i] + (address - read_addr[i])))[0]);
|
||||
@@ -1189,7 +1189,7 @@ inline unsigned int m68k_read_immediate_16(unsigned int address) {
|
||||
return m68k_read_memory_16(address);
|
||||
}
|
||||
inline unsigned int m68k_read_immediate_32(unsigned int address) {
|
||||
#if M68K_EMULATE_PREFETCH == OPT_OFF
|
||||
#if M68K_EMULATE_PREFETCH == OPT_ON
|
||||
for (int i = 0; i < read_ranges; i++) {
|
||||
if(address >= read_addr[i] && address < read_upper[i]) {
|
||||
return be32toh(((unsigned int *)(read_data[i] + (address - read_addr[i])))[0]);
|
||||
|
||||
Reference in New Issue
Block a user