Make a dedicated function for advancing the PC by one instruction

This commit is contained in:
2025-12-21 16:00:54 +01:00
parent 390a2b3228
commit 25c3b9f5e2
2 changed files with 12 additions and 8 deletions

View File

@@ -92,4 +92,8 @@ impl Core {
}
self.x_regs[id as usize] = value;
}
pub(crate) fn advance_pc(&mut self) {
self.pc = self.pc.wrapping_add(4);
}
}