mirror of
https://github.com/jscrane/r65emu.git
synced 2024-10-02 00:57:48 +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);
|
_mc(PC, 4);
|
||||||
byte op = _mem[PC];
|
byte op = _mem[PC];
|
||||||
#if defined(CPU_DEBUG)
|
#if defined(CPU_DEBUG)
|
||||||
printf("%5d MR %04x %02x\n", _ts, PC, op);
|
printf("%5ld MR %04x %02x\n", _ts, PC, op);
|
||||||
#endif
|
#endif
|
||||||
PC++;
|
PC++;
|
||||||
R++;
|
R++;
|
||||||
@ -137,14 +137,14 @@ void z80::_step_idx(OP_IDX ops[]) {
|
|||||||
_mc(PC, 3);
|
_mc(PC, 3);
|
||||||
byte off = _mem[PC];
|
byte off = _mem[PC];
|
||||||
#if defined(CPU_DEBUG)
|
#if defined(CPU_DEBUG)
|
||||||
printf("%5d MR %04x %02x\n", _ts, PC, off);
|
printf("%5ld MR %04x %02x\n", _ts, PC, off);
|
||||||
#endif
|
#endif
|
||||||
PC++;
|
PC++;
|
||||||
|
|
||||||
_mc(PC, 3);
|
_mc(PC, 3);
|
||||||
byte op = _mem[PC];
|
byte op = _mem[PC];
|
||||||
#if defined(CPU_DEBUG)
|
#if defined(CPU_DEBUG)
|
||||||
printf("%5d MR %04x %02x\n", _ts, PC, op);
|
printf("%5ld MR %04x %02x\n", _ts, PC, op);
|
||||||
#endif
|
#endif
|
||||||
_mc(PC, 1);
|
_mc(PC, 1);
|
||||||
_mc(PC, 1);
|
_mc(PC, 1);
|
||||||
|
10
z80.h
10
z80.h
@ -147,29 +147,29 @@ private:
|
|||||||
|
|
||||||
inline byte _rb(Memory::address a) {
|
inline byte _rb(Memory::address a) {
|
||||||
#if defined(CPU_DEBUG)
|
#if defined(CPU_DEBUG)
|
||||||
printf("%5d MC %04x\n", _ts, a);
|
printf("%5ld MC %04x\n", _ts, a);
|
||||||
#endif
|
#endif
|
||||||
ts(3);
|
ts(3);
|
||||||
#if defined(CPU_DEBUG)
|
#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
|
#endif
|
||||||
return _mem[a];
|
return _mem[a];
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void _sb(Memory::address a, byte b) {
|
inline void _sb(Memory::address a, byte b) {
|
||||||
#if defined(CPU_DEBUG)
|
#if defined(CPU_DEBUG)
|
||||||
printf("%5d MC %04x\n", _ts, a);
|
printf("%5ld MC %04x\n", _ts, a);
|
||||||
#endif
|
#endif
|
||||||
ts(3);
|
ts(3);
|
||||||
#if defined(CPU_DEBUG)
|
#if defined(CPU_DEBUG)
|
||||||
printf("%5d MW %04x %02x\n", _ts, a, b);
|
printf("%5ld MW %04x %02x\n", _ts, a, b);
|
||||||
#endif
|
#endif
|
||||||
_mem[a] = b;
|
_mem[a] = b;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void _mc(Memory::address a, int i) {
|
inline void _mc(Memory::address a, int i) {
|
||||||
#if defined(CPU_DEBUG)
|
#if defined(CPU_DEBUG)
|
||||||
printf("%5d MC %04x\n", _ts, a);
|
printf("%5ld MC %04x\n", _ts, a);
|
||||||
#endif
|
#endif
|
||||||
ts(i);
|
ts(i);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user