         var readByte : UInt8 = UInt8(address >> 8)
 
         //Format Values
-        var states = String(format: "%5d", z80.Tstates)
+        var states = String(format: "%5d", Tstates)
         var addressStr = String(format: "%04x", address)
         var readStr = String(format:"%02x", readByte)
         var combinedStr = states + " PR " + addressStr + " " + readStr + "\n"

        } 
        else {
              //Format Values
              var states = String(format: "%5d", z80.Tstates)
              var addressStr = String(format: "%04x", address)
              var combinedStr = states + " PC " + addressStr + "\n"


	    }

        //Format Values
        var states = String(format: "%5d", Tstates)
        var addressStr = String(format: "%04x", address)
        var byteStr = String(format: "%02x", b)
        var combinedStr = states + " PW " + addressStr + " " + byteStr + "\n"
