diff options
author | Ian Moffett <ian@osmora.org> | 2025-07-24 17:03:03 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-07-24 17:04:17 -0400 |
commit | 707b9d2ab811c488dd9a8739c5943eec79576434 (patch) | |
tree | 6ce9a5214e1b24c604bff25e213d841cccf8f61a | |
parent | aa3820495e8c2f103f82923240e7936ca78fab84 (diff) |
oemu: cpu: Skip cycle upon decoding of NOP opcode
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r-- | usr.bin/oemu/cpu.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.bin/oemu/cpu.c b/usr.bin/oemu/cpu.c index fefdd4c..49d4671 100644 --- a/usr.bin/oemu/cpu.c +++ b/usr.bin/oemu/cpu.c @@ -377,6 +377,10 @@ cpu_kick(struct oemu_cpu *cpu, struct sysmem *mem) inst = (inst_t *)&memp[regs->ip]; switch (inst->opcode) { + case INST_NOP: + /* NOP */ + regs->ip += sizeof(*inst); + continue; case INST_MOV_IMM: cpu_mov_imm(cpu, inst); break; |