mirror of
https://github.com/jtauber/applepy.git
synced 2024-11-26 01:49:16 +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
|
||||
|
||||
def load_file(self, address, filename):
|
||||
with open(filename) as f:
|
||||
with open(filename, "rb") as f:
|
||||
for offset, datum in enumerate(f.read()):
|
||||
self._mem[address - self.start + offset] = ord(datum)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user