1
0
mirror of https://github.com/jscrane/r65emu.git synced 2024-07-24 21:29:00 +00:00

fix warnings

This commit is contained in:
Stephen Crane 2018-08-09 14:23:54 +01:00
parent e181f8e483
commit 30c049e91c
2 changed files with 8 additions and 8 deletions

View File

@ -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
View File

@ -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);
}