Small cleanup with new run machine proc.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user