Small cleanup with new run machine proc.

This commit is contained in:
2026-06-05 08:10:24 +02:00
parent 31cbcb38e8
commit 141aea0fc4
3 changed files with 35 additions and 33 deletions
+1 -2
View File
@@ -333,5 +333,4 @@ op_mem_get :: proc(s: ^System, vx_idx: u16) {
for loop_idx in 0..=vx_idx {
s.v[loop_idx] = s.memory[s.i + loop_idx]
}
}
}
+8
View File
@@ -60,3 +60,11 @@ init :: proc() -> System {
return s
}
run_machine :: proc(s: ^System) {
// CPU cycles
for _ in 0..<12 {
handle_input(s)
cycle(s)
}
}