mirror of
https://github.com/jtauber/applepy.git
synced 2025-02-16 17:30:27 +00:00
open memory files in binary mode
This commit is contained in:
parent
c36ad8b662
commit
9ffbf63716
@ -25,7 +25,7 @@ class ROM:
|
|||||||
self._mem[address - self.start + offset] = datum
|
self._mem[address - self.start + offset] = datum
|
||||||
|
|
||||||
def load_file(self, address, filename):
|
def load_file(self, address, filename):
|
||||||
with open(filename) as f:
|
with open(filename, "rb") as f:
|
||||||
for offset, datum in enumerate(f.read()):
|
for offset, datum in enumerate(f.read()):
|
||||||
self._mem[address - self.start + offset] = ord(datum)
|
self._mem[address - self.start + offset] = ord(datum)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user