1
0
mirror of https://github.com/jscrane/r65emu.git synced 2024-06-06 09:29:30 +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); _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
View File

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