Beispiel #1
0
 def _readTap(self, tap):
     self.version = (self.MAJOR, self.MINOR)
     while True:
         blockLen = tap.read(2)
         if not blockLen: break
         len = unpack('<H', blockLen)[0]
         block = TzxbData()
         block.setup(TapFile.create(tap.read(len)))
         self.blocks.append(block)
Beispiel #2
0
 def read(self, tzx):
     self.data = tzx.read(0x04)
     len = unpack('<H', self.data[0x02:0x04])[0]
     self.tap = TapFile.create(tzx.read(len))
Beispiel #3
0
 def read(self, tzx):
     self.data = tzx.read(0x0A)
     len = unpack('<BBB', self.data[0x07:0x0A])
     len = len[2] << 16 | len[1] << 8 | len[0]
     self.tap = TapFile.create(tzx.read(len))
Beispiel #4
0
 def createTap(self):
     """ Creates a TapFile from the collected data """
     return TapFile.create(self.data)