From 707b9d2ab811c488dd9a8739c5943eec79576434 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 24 Jul 2025 17:03:03 -0400 Subject: oemu: cpu: Skip cycle upon decoding of NOP opcode Signed-off-by: Ian Moffett --- usr.bin/oemu/cpu.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'usr.bin/oemu/cpu.c') 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; -- cgit v1.2.3