Fix MVi not incrementing PC after reading immediate

This commit is contained in:
pjht 2024-02-01 18:59:31 -06:00
parent b87a8f81ef
commit 0b3e2d0ff3
Signed by: pjht
GPG Key ID: 7B5F6AFBEC7EE78E

View File

@ -538,6 +538,7 @@ impl I8080 {
} }
Opcode::Mvi(dst) => { Opcode::Mvi(dst) => {
self.regs[dst] = data; self.regs[dst] = data;
self.pc += 1;
} }
Opcode::Lxi(_) => { Opcode::Lxi(_) => {
self.z = data; self.z = data;