         @tick() for [1..3]                               # 3 "dummy" writes, mentioned above
         @enterInterruptHandler 0xFFFC
         @clearInterrupt Interrupt.RESET
+        @halted = false
 
     handleNMI: ->
         @saveStateBeforeInterrupt()


    readOperation: ->
        @operationsTable[@$readNextProgramByte()]

    haltOperation: ->
        @moveProgramCounter -1

    readNextProgramByte: ->
        @$readByte @$moveProgramCounter 1

    ###########################################################

    step: ->
        blocked = @dma.isBlockingCPU() or @apu.isBlockingCPU()
        if @activeInterrupts and not blocked
            @resolveInterrupt()
        if @halted or blocked
            @tick() # Tick everything else
        else
            @executeOperation()

    ###########################################################
