mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-18 02:01:39 +00:00
718112a8fe
Currently none of these is being used, but eventually they will, once more code gets ported over. So it's better to have them right away and avoid editing the project file too much, only to revert that later.
26 lines
615 B
C
26 lines
615 B
C
|
|
#include "Sap_Emu.h"
|
|
|
|
#include "blargg_source.h"
|
|
|
|
#define CPU_WRITE( cpu, addr, data, time ) STATIC_CAST(Sap_Emu&,*cpu).cpu_write( addr, data )
|
|
|
|
void Sap_Emu::cpu_write( sap_addr_t addr, int data )
|
|
{
|
|
mem.ram [addr] = data;
|
|
if ( (addr >> 8) == 0xD2 )
|
|
cpu_write_( addr, data );
|
|
}
|
|
|
|
#ifdef NDEBUG
|
|
#define CPU_READ( cpu, addr, time ) READ_LOW( addr )
|
|
#else
|
|
#define CPU_READ( cpu, addr, time ) STATIC_CAST(Sap_Emu&,*cpu).cpu_read( addr )
|
|
|
|
int Sap_Emu::cpu_read( sap_addr_t addr )
|
|
{
|
|
if ( (addr & 0xF900) == 0xD000 )
|
|
debug_printf( "Unmapped read $%04X\n", addr );
|
|
return mem.ram [addr];
|
|
}
|
|
#endif
|