Skip to content

Commit

Permalink
fixed small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
duysqubix committed Oct 12, 2023
1 parent 5baa88a commit 10d0d80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/motherboard/interrupts.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ func (c *CPU) ServiceInterrupt(interrupt uint8) {

if c.Halted {
c.Mb.Cpu.Registers.PC++
c.Halted = false
return
}

if c.Interrupts.InterruptsOn {
Expand Down

0 comments on commit 10d0d80

Please sign in to comment.