LMMS
Loading...
Searching...
No Matches
hes_cpu_io.h File Reference
#include "Hes_Emu.h"
#include "blargg_source.h"

Go to the source code of this file.

Macros

#define CPU_READ_FAST(cpu, addr, time, out)
#define CPU_READ_FAST_(cpu, addr, time, out)
#define CPU_WRITE_FAST(cpu, addr, data, time)
#define CPU_WRITE_FAST_(cpu, addr, data, time)
#define CPU_READ(cpu, addr, time)
#define CPU_WRITE(cpu, addr, data, time)
#define CPU_WRITE_VDP(cpu, addr, data, time)
#define CPU_SET_MMR(cpu, page, bank)
#define CPU_DONE(cpu, time, result_out)

Macro Definition Documentation

◆ CPU_DONE

#define CPU_DONE ( cpu,
time,
result_out )
Value:
result_out = STATIC_CAST(Hes_Emu*,cpu)->cpu_done()
Definition Hes_Emu.h:11

◆ CPU_READ

#define CPU_READ ( cpu,
addr,
time )
Value:
STATIC_CAST(Hes_Emu*,cpu)->cpu_read( addr )

◆ CPU_READ_FAST

#define CPU_READ_FAST ( cpu,
addr,
time,
out )
Value:
CPU_READ_FAST_( STATIC_CAST(Hes_Emu*,cpu), addr, time, out )
#define CPU_READ_FAST_(emu, addr, time, out)
Definition gb_cpu_io.h:59
float out
Definition lilv_test.c:1461

◆ CPU_READ_FAST_

#define CPU_READ_FAST_ ( cpu,
addr,
time,
out )
Value:
{\
out = READ_PROG( addr );\
if ( mmr [addr >> page_shift] == 0xFF )\
{\
FLUSH_TIME();\
out = cpu->cpu_read_( addr );\
CACHE_TIME();\
}\
}
#define READ_PROG(addr)
Definition Ay_Cpu.cpp:89

◆ CPU_SET_MMR

#define CPU_SET_MMR ( cpu,
page,
bank )
Value:
STATIC_CAST(Hes_Emu*,cpu)->cpu_set_mmr( page, bank )
static SerdStatus page(SerdReader *reader)
Definition reader.c:112

◆ CPU_WRITE

#define CPU_WRITE ( cpu,
addr,
data,
time )
Value:
STATIC_CAST(Hes_Emu*,cpu)->cpu_write( addr, data )
JSAMPIMAGE data
Definition jpeglib.h:945

◆ CPU_WRITE_FAST

#define CPU_WRITE_FAST ( cpu,
addr,
data,
time )
Value:
CPU_WRITE_FAST_( STATIC_CAST(Hes_Emu*,cpu), addr, data, time )
#define CPU_WRITE_FAST_(cpu, addr, data, time)
Definition hes_cpu_io.h:72

◆ CPU_WRITE_FAST_

#define CPU_WRITE_FAST_ ( cpu,
addr,
data,
time )
Value:
{\
byte* out = cpu->write_pages [addr >> page_shift];\
addr &= page_size - 1;\
if ( out )\
{\
out [addr] = data;\
}\
else if ( mmr [addr >> page_shift] == 0xFF )\
{\
FLUSH_TIME();\
cpu->cpu_write_( addr, data );\
CACHE_TIME();\
}\
}

◆ CPU_WRITE_VDP

#define CPU_WRITE_VDP ( cpu,
addr,
data,
time )
Value:
STATIC_CAST(Hes_Emu*,cpu)->cpu_write_vdp( addr, data )