mirror of
https://github.com/jscrane/r65emu.git
synced 2025-03-19 03:30:52 +00:00
fix warnings
This commit is contained in:
parent
e181f8e483
commit
30c049e91c
6
z80.cpp
6
z80.cpp
@ -64,7 +64,7 @@ byte z80::_fetch_op() {
|
||||
_mc(PC, 4);
|
||||
byte op = _mem[PC];
|
||||
#if defined(CPU_DEBUG)
|
||||
printf("%5d MR %04x %02x\n", _ts, PC, op);
|
||||
printf("%5ld MR %04x %02x\n", _ts, PC, op);
|
||||
#endif
|
||||
PC++;
|
||||
R++;
|
||||
@ -137,14 +137,14 @@ void z80::_step_idx(OP_IDX ops[]) {
|
||||
_mc(PC, 3);
|
||||
byte off = _mem[PC];
|
||||
#if defined(CPU_DEBUG)
|
||||
printf("%5d MR %04x %02x\n", _ts, PC, off);
|
||||
printf("%5ld MR %04x %02x\n", _ts, PC, off);
|
||||
#endif
|
||||
PC++;
|
||||
|
||||
_mc(PC, 3);
|
||||
byte op = _mem[PC];
|
||||
#if defined(CPU_DEBUG)
|
||||
printf("%5d MR %04x %02x\n", _ts, PC, op);
|
||||
printf("%5ld MR %04x %02x\n", _ts, PC, op);
|
||||
#endif
|
||||
_mc(PC, 1);
|
||||
_mc(PC, 1);
|
||||
|
10
z80.h
10
z80.h
@ -147,29 +147,29 @@ private:
|
||||
|
||||
inline byte _rb(Memory::address a) {
|
||||
#if defined(CPU_DEBUG)
|
||||
printf("%5d MC %04x\n", _ts, a);
|
||||
printf("%5ld MC %04x\n", _ts, a);
|
||||
#endif
|
||||
ts(3);
|
||||
#if defined(CPU_DEBUG)
|
||||
printf("%5d MR %04x %02x\n", _ts, a, (byte)_mem[a]);
|
||||
printf("%5ld MR %04x %02x\n", _ts, a, (byte)_mem[a]);
|
||||
#endif
|
||||
return _mem[a];
|
||||
}
|
||||
|
||||
inline void _sb(Memory::address a, byte b) {
|
||||
#if defined(CPU_DEBUG)
|
||||
printf("%5d MC %04x\n", _ts, a);
|
||||
printf("%5ld MC %04x\n", _ts, a);
|
||||
#endif
|
||||
ts(3);
|
||||
#if defined(CPU_DEBUG)
|
||||
printf("%5d MW %04x %02x\n", _ts, a, b);
|
||||
printf("%5ld MW %04x %02x\n", _ts, a, b);
|
||||
#endif
|
||||
_mem[a] = b;
|
||||
}
|
||||
|
||||
inline void _mc(Memory::address a, int i) {
|
||||
#if defined(CPU_DEBUG)
|
||||
printf("%5d MC %04x\n", _ts, a);
|
||||
printf("%5ld MC %04x\n", _ts, a);
|
||||
#endif
|
||||
ts(i);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user