Minor mem handler fixes (pretty much a no-op)

This commit is contained in:
David Guillen Fandos 2021-11-03 21:33:29 +00:00
parent 746503af95
commit 44ccdb3d25
2 changed files with 6 additions and 6 deletions

View File

@ -1910,14 +1910,14 @@ void function_cc write_rtc(u32 address, u32 value)
break; \
} \
u8 function_cc read_memory8(u32 address)
u32 function_cc read_memory8(u32 address)
{
u8 value;
read_memory(8);
return value;
}
u32 read_memory8s(u32 address) {
u32 function_cc read_memory8s(u32 address) {
return (u32)((s8)read_memory8(address));
}
@ -1933,7 +1933,7 @@ u16 function_cc read_memory16_signed(u32 address)
return value;
}
u32 read_memory16s(u32 address) {
u32 function_cc read_memory16s(u32 address) {
return (u32)((s16)read_memory16_signed(address));
}

View File

@ -167,11 +167,11 @@ typedef enum
#define FLASH_MANUFACTURER_PANASONIC 0x32
#define FLASH_MANUFACTURER_SST 0xBF
u8 function_cc read_memory8(u32 address);
u32 read_memory8s(u32 address);
u32 function_cc read_memory8(u32 address);
u32 function_cc read_memory8s(u32 address);
u32 function_cc read_memory16(u32 address);
u16 function_cc read_memory16_signed(u32 address);
u32 read_memory16s(u32 address);
u32 function_cc read_memory16s(u32 address);
u32 function_cc read_memory32(u32 address);
cpu_alert_type function_cc write_memory8(u32 address, u8 value);
cpu_alert_type function_cc write_memory16(u32 address, u16 value);