             @$leaveVBlank()
 
     enterVBlank: ->
-        @vblankActive = 1
+        @vblankActive = true
         @vblankFlag = 1 unless @suppressVBlank
         @nmiDelay = 2
         @frameAvailable = true
 
     leaveVBlank: ->
-        @vblankActive = 0
+        @vblankActive = false
         @vblankFlag = 0
         @suppressVBlank = false
         @supressNMI = false


    incrementFrame: ->
        @scanline = 0
        @cycle++ if @oddFrame and @$isRenderingEnabled()
        @oddFrame = not @oddFrame

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

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

    incrementCycle: ->
        @cycle++ if (@cycleFlags & F_SKIP) and @oddFrame and @$isRenderingEnabled() # Skipped on odd frames
        @cycle++
        @incementScanline() if @cycle > 340
        @cycleFlags = cycleFlagsTable[@cycle] & scanlineFlagsTable[@scanline] # Update flags for new scanline/cycle
