         result = @popByte()
         result |= @popByte() << 8
 
-    resolvePageCrossed: ->
-        if @pageCrossed
-            tick()
-            @pageCrossed = false
+    resolveReadCycles: ->
+        tick()
+        if @emptyReadCycle
+            @emptyReadCycle = no
+            @tick()
+
+    resolveWriteCycles: ->
+        tick()
+        if @emptyWriteCycle
+            @emptyWriteCycle = no
+            @tick()
 
     getStatus: ->
         status = @carryFlag


    resetVariables: ->
        @cycle = 0
        @pageCrossed = false
        @requestedInterrupt = null

    resetMemory: ->

    step: ->
        @resolveInterrupt()
        operation = @readOperation()
        @emptyReadCycle = operation.emptyReadCycle
        @emptyWriteCycle = operation.emptyWriteCycle
        addressingMode = operation.addressingMode
        instruction = operation.instruction
        address = @computeAddress addressingMode
