move timer tick outside CPU non-halt loop, must always tick

This commit is contained in:
Colby 2016-07-21 18:08:34 +10:00
parent e72058ec37
commit 91f3a27fe2

View file

@ -78,8 +78,8 @@ module Waterfoul
serve_interrupt if @ime
instruction_byte = fetch_instruction
perform_instruction instruction_byte
@timer.tick @m
end
@timer.tick @m
end
def halted?