1
0
mirror of https://github.com/mnaberez/py65.git synced 2024-12-28 15:29:40 +00:00

Fix `py65mon --rom` on Python 3. Closes #28

This commit is contained in:
Mike Naberezny 2015-02-09 21:31:26 -08:00
parent 69f243265f
commit 173b40a809
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,7 @@
0.22 (Next Release)
- Fixed a bug where ``py65mon --rom`` would raise an exception
on Python 3.
0.21 (2015-02-09)

View File

@ -598,7 +598,9 @@ class Monitor(cmd.Cmd):
if len(split) == 2:
if split[1] == "top":
# load a ROM to top of memory
start = self.addrMask - len(bytes) / int(self.byteWidth / 8) + 1
top_address = self.addrMask
program_size = len(bytes) // (self.byteWidth // 8)
start = top_address - program_size + 1
else:
start = self._address_parser.number(split[1])
else: