mirror of
https://github.com/jtauber/applepy.git
synced 2024-11-26 01:49:16 +00:00
Merge pull request #14 from ghewgill/windows
open memory files in binary mode
This commit is contained in:
commit
aac75ef1cb
@ -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…
Reference in New Issue
Block a user