Go to the source code of this file.
|
| #define | SUSPICIOUS_OPCODE(name) |
| #define | CPU_READ(time, offset, addr) |
| #define | CPU_WRITE(time, offset, addr, data) |
| #define | CPU_READ_TIMER(time, offset, addr_, out) |
| #define | TIME_ADJ(n) |
| #define | READ_TIMER(time, addr, out) |
| #define | READ( time, addr) |
| #define | WRITE(time, addr, data) |
| #define | DP_ADDR(addr) |
| #define | READ_DP_TIMER( time, addr, out) |
| #define | READ_DP( time, addr) |
| #define | WRITE_DP(time, addr, data) |
| #define | READ_PROG16(addr) |
| #define | SET_PC(n) |
| #define | GET_PC() |
| #define | READ_PC(pc) |
| #define | READ_PC16(pc) |
| #define | SET_SP(v) |
| #define | GET_SP() |
| #define | PUSH16(data) |
| #define | PUSH(data) |
| #define | POP(out) |
| #define | MEM_BIT(rel) |
| #define | GET_PSW(out) |
| #define | SET_PSW(in) |
| #define | BRANCH(cond) |
| #define | CASE(n) |
| #define | ADDR_MODES_(op) |
| #define | ADDR_MODES_NO_DP(op) |
| #define | ADDR_MODES(op) |
| #define | LOGICAL_OP(op, func) |
| #define | CASE(n) |
| #define | INC_DEC_REG(reg, op) |
| #define | CBRANCH(cond) |
◆ ADDR_MODES
Value:
CASE( op - 0x04 ) \
end_##op:
int dp
Definition Spc_Cpu.h:149
JSAMPIMAGE data
Definition jpeglib.h:945
◆ ADDR_MODES_
| #define ADDR_MODES_ |
( |
| op | ) |
|
Value:
goto end_##op;\
CASE( op + 0x0F ) \
goto end_##op;\
CASE( op - 0x01 ) \
goto end_##op;\
CASE( op + 0x0E ) \
goto abs_##op;\
CASE( op + 0x0D ) \
CASE( op - 0x03 ) \
abs_##op:\
goto end_##op;\
CASE( op + 0x0C ) \
#define READ_PC(pc)
Definition Spc_Cpu.h:73
uint16_t pc
Definition Spc_Cpu.h:144
#define READ_PROG16(addr)
Definition Spc_Cpu.h:69
int y
Definition inflate.c:1588
unsigned x[BMAX+1]
Definition inflate.c:1586
unsigned char uint8_t
Definition mid.cpp:98
◆ ADDR_MODES_NO_DP
| #define ADDR_MODES_NO_DP |
( |
| op | ) |
|
◆ BRANCH
Value:{\
if ( cond )\
rel_time -= 2;\
}
goto loop
Definition Spc_Cpu.h:155
signed char int8_t
Definition mid.cpp:95
◆ CASE [1/2]
Value:
int n
Definition crypt.c:458
◆ CASE [2/2]
◆ CBRANCH
Value:{\
if ( cond )\
goto cbranch_taken_loop;\
rel_time -= 2;\
goto inc_pc_loop;\
}
◆ CPU_READ
| #define CPU_READ |
( |
| time, |
|
|
| offset, |
|
|
| addr ) |
Value:cpu_read( addr, time + offset )
◆ CPU_READ_TIMER
| #define CPU_READ_TIMER |
( |
| time, |
|
|
| offset, |
|
|
| addr_, |
|
|
| out ) |
Value:{\
rel_time_t adj_time = time + offset;\
int dp_addr = addr_;\
int ti = dp_addr - (r_t0out + 0xF0);\
if ( (unsigned) ti < timer_count )\
{\
Timer*
t = &
m.timers [ti];\
if ( adj_time >=
t->next_time )\
t = run_timer_(
t, adj_time );\
}\
else\
{\
if ( (
unsigned)
i < 0x10 )\
out = cpu_read_smp_reg(
i, adj_time );\
}\
}
unsigned * m
Definition inflate.c:1559
struct huft * t
Definition inflate.c:943
register unsigned i
Definition inflate.c:1575
float out
Definition lilv_test.c:1461
◆ CPU_WRITE
| #define CPU_WRITE |
( |
| time, |
|
|
| offset, |
|
|
| addr, |
|
|
| data ) |
Value:cpu_write(
data, addr, time + offset )
◆ DP_ADDR
◆ GET_PC
◆ GET_PSW
Value:{\
}
int const z02
Definition Spc_Cpu.h:116
int psw
Definition Spc_Cpu.h:146
int const p20
Definition Spc_Cpu.h:112
int const c01
Definition Spc_Cpu.h:117
int nz
Definition Spc_Cpu.h:148
int const n80
Definition Spc_Cpu.h:110
return c
Definition crypt.c:175
◆ GET_SP
Value:
uint8_t sp
Definition Spc_Cpu.h:145
◆ INC_DEC_REG
| #define INC_DEC_REG |
( |
| reg, |
|
|
| op ) |
◆ LOGICAL_OP
| #define LOGICAL_OP |
( |
| op, |
|
|
| func ) |
Value:
case op: \
goto inc_pc_loop;\
{ unsigned addr;\
case op + 0x11: \
goto addr_##op;\
case op + 0x01: \
case op + 0x10:{\
}\
addr_##op:\
}
#define READ(addr)
Definition Ay_Cpu.cpp:92
uint8_t a
Definition Spc_Cpu.h:141
#define READ_DP( time, addr)
Definition Spc_Cpu.h:66
unsigned short uint16_t
Definition mid.cpp:99
◆ MEM_BIT
Value:CPU_mem_bit(
pc, rel_time + rel )
◆ POP
◆ PUSH
◆ PUSH16
Value:{\
PUSH( (
data & 0xff00) >> 8 );\
}
◆ READ
| #define READ |
( |
| time, |
|
|
| addr ) |
Value:
#define TIME_ADJ(n)
Definition Spc_Cpu.h:57
#define CPU_READ(cpu, addr, time)
Definition gb_cpu_io.h:68
◆ READ_DP
| #define READ_DP |
( |
| time, |
|
|
| addr ) |
Value:
#define DP_ADDR(addr)
Definition Spc_Cpu.h:63
◆ READ_DP_TIMER
| #define READ_DP_TIMER |
( |
| time, |
|
|
| addr, |
|
|
| out ) |
Value:
#define CPU_READ_TIMER(time, offset, addr_, out)
Definition Spc_Cpu.h:34
◆ READ_PC
◆ READ_PC16
◆ READ_PROG16
| #define READ_PROG16 |
( |
| addr | ) |
|
Value:(
RAM [(addr) & 0xffff] | (
RAM [((addr) + 1) & 0xffff] << 8))
#define RAM
Definition Snes_Spc.cpp:22
◆ READ_TIMER
| #define READ_TIMER |
( |
| time, |
|
|
| addr, |
|
|
| out ) |
◆ SET_PC
◆ SET_PSW
Value:{\
}
float in
Definition lilv_test.c:1460
◆ SET_SP
Value:
unsigned v[N_MAX]
Definition inflate.c:1584
◆ SUSPICIOUS_OPCODE
| #define SUSPICIOUS_OPCODE |
( |
| name | ) |
|
Value:
#define debug_printf
Definition blargg_source.h:26
static const char * name
Definition pugl.h:1582
◆ TIME_ADJ
◆ WRITE
| #define WRITE |
( |
| time, |
|
|
| addr, |
|
|
| data ) |
Value:
#define CPU_WRITE(cpu, addr, data, time)
Definition gb_cpu_io.h:71
◆ WRITE_DP
| #define WRITE_DP |
( |
| time, |
|
|
| addr, |
|
|
| data ) |
Value:
#define WRITE(addr, data)
Definition Ay_Cpu.cpp:93
◆ assert()
◆ check()
◆ GET_PSW()
◆ if()
| if |
( |
(rel_time+=m.cycle_table[opcode]) | , |
|
|
0 | ) |
◆ SET_PC()
◆ SET_PSW()
| SET_PSW |
( |
m.cpu_regs. | psw | ) |
|
◆ SET_SP()
◆ switch()
◆ __pad0__
| cbranch_taken_loop __pad0__ |
◆ __pad1__
◆ __pad2__
◆ __pad3__
◆ __pad4__
| m cpu_regs a = m.cpu_regs.a |
◆ b10
◆ c01
◆ data
◆ dp
◆ h08
◆ i04
◆ loop
◆ n80
◆ nz
◆ nz_neg_mask
◆ opcode
◆ p20
◆ pc
◆ psw
◆ sp
◆ SPC_CPU_RUN_FUNC
◆ v40
| m cpu_regs x = m.cpu_regs.x |
| m cpu_regs y = m.cpu_regs.y |
◆ z02