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:
parent
69f243265f
commit
173b40a809
@ -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)
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user