mirror of
https://github.com/mnaberez/py65.git
synced 2025-01-02 03:29:26 +00:00
Convert to integer for Python 3
This commit is contained in:
parent
90774cb9b6
commit
7034d8f595
@ -318,7 +318,7 @@ class Monitor(cmd.Cmd):
|
|||||||
|
|
||||||
while True:
|
while True:
|
||||||
prompt = "\r$" + (self.addrFmt % start) + " " + \
|
prompt = "\r$" + (self.addrFmt % start) + " " + \
|
||||||
(" " * (1 + self.byteWidth / 4) * 3)
|
(" " * int(1 + self.byteWidth / 4) * 3)
|
||||||
|
|
||||||
line = console.line_input(prompt,
|
line = console.line_input(prompt,
|
||||||
stdin=self.stdin, stdout=self.stdout)
|
stdin=self.stdin, stdout=self.stdout)
|
||||||
@ -398,7 +398,7 @@ class Monitor(cmd.Cmd):
|
|||||||
cur_address += 1
|
cur_address += 1
|
||||||
bytes_remaining -= 1
|
bytes_remaining -= 1
|
||||||
|
|
||||||
fieldwidth = 1 + (1 + self.byteWidth / 4) * 3
|
fieldwidth = 1 + int(1 + self.byteWidth / 4) * 3
|
||||||
fieldfmt = "%%-%ds" % fieldwidth
|
fieldfmt = "%%-%ds" % fieldwidth
|
||||||
return "$" + self.addrFmt % address + " " + fieldfmt % dump + disasm
|
return "$" + self.addrFmt % address + " " + fieldfmt % dump + disasm
|
||||||
|
|
||||||
@ -569,7 +569,7 @@ class Monitor(cmd.Cmd):
|
|||||||
if len(split) == 2:
|
if len(split) == 2:
|
||||||
if split[1] == "-1":
|
if split[1] == "-1":
|
||||||
# load a ROM to top of memory
|
# load a ROM to top of memory
|
||||||
start = self.addrMask - len(bytes) / (self.byteWidth / 8) + 1
|
start = self.addrMask - len(bytes) / int(self.byteWidth / 8) + 1
|
||||||
else:
|
else:
|
||||||
start = self._address_parser.number(split[1])
|
start = self._address_parser.number(split[1])
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user