Parse options properly

This commit is contained in:
Byron Lathi
2023-08-25 21:26:28 -07:00
parent a971e7a717
commit 4b2b1a425e
2 changed files with 27 additions and 3 deletions

View File

@@ -37,6 +37,9 @@ class O65():
self.options.append((olen, otype, obytes))
olen = int.from_bytes(_file.read(1))
text_offs = _file.tell()
print(f"Text offset: {text_offs}")
self.text = _file.read(self.header["tlen"])
self.data = _file.read(self.header["dlen"])