X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=m68kcpu.h;h=ef25ad1b156343911527f76d189f0f8e9c4a73f9;hb=62d18f9f13989b4625a00c1eb050301f8470cf94;hp=21d11adca464be302e7f5b8734413244c835f2ea;hpb=fe3b4bb032e02148c44ea11a23129650eae7efd7;p=pistorm diff --git a/m68kcpu.h b/m68kcpu.h index 21d11ad..ef25ad1 100644 --- a/m68kcpu.h +++ b/m68kcpu.h @@ -1178,7 +1178,6 @@ static inline uint m68ki_read_imm_16(void) return m68ki_read_imm6_addr_slowpath(pc, cache); } - static inline uint m68ki_read_imm_8(void) { /* map read immediate 8 to read immediate 16 */ @@ -1227,15 +1226,7 @@ static inline uint m68ki_read_imm_32(void) return temp_val; #else - m68ki_set_fc(FLAG_S | FUNCTION_CODE_USER_PROGRAM); /* auto-disable (see m68kcpu.h) */ - m68ki_check_address_error(REG_PC, MODE_READ, FLAG_S | FUNCTION_CODE_USER_PROGRAM); /* auto-disable (see m68kcpu.h) */ - uint32_t address = ADDRESS_68K(REG_PC); REG_PC += 4; - 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]); - } - } return m68k_read_immediate_32(address); #endif /* M68K_EMULATE_PREFETCH */