diff options
author | Michael Pavone <pavone@retrodev.com> | 2018-06-29 09:33:23 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2018-06-29 09:33:23 -0700 |
commit | aad75c86365b71d625a730a0d42c6537a9016feb (patch) | |
tree | d365c39a527093019d356f03765788c40bf89953 /jagcpu_x86.c | |
parent | 5f1a3e5c10bd84d5049b1a8a56c5aace468761cb (diff) |
Fix some issues identified by cppcheck
Diffstat (limited to 'jagcpu_x86.c')
-rw-r--r-- | jagcpu_x86.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jagcpu_x86.c b/jagcpu_x86.c index c7a599d..322e6b4 100644 --- a/jagcpu_x86.c +++ b/jagcpu_x86.c @@ -102,7 +102,7 @@ void jag_check_resultwrite_singleread(jag_cpu options *opts, uint8_t reg) code_ptr no_delay = code-.cur + 1; jcc(code, CC_NZ, no_delay + 1); ccylces(code, 1); - *no_delay = code->cur - (no_delay = 1); + *no_delay = code->cur - (no_delay + 1); *no_result = code->cur - (no_result + 1); mov_rr(code, opts->resultreg, opts->writeback, SZ_B); } @@ -122,7 +122,7 @@ void translate_jag_quickimmed(jag_cpu_options *opts, uint32_t address, uint16_t uint16_t *translate_jag_inst(uint16_t *stream, jag_cpu_options *opts, uint32_t address) { - uint16_t inst = *stream + uint16_t inst = *stream; ++stream; uint16_t opcode = jag_opcode(inst, opts->is_gpu); check_cycles_int(&opts->gen, address); |