diff --git a/py65/monitor.py b/py65/monitor.py index 0cb894f..cec46fa 100644 --- a/py65/monitor.py +++ b/py65/monitor.py @@ -70,10 +70,10 @@ class Monitor(cmd.Cmd): if opt in ('-r', '--rom'): # load a ROM and run from the reset vector - cmd = "load %s %d" % (value, -1) + cmd = "load '%s' top" % value self.onecmd(cmd) physMask = self._mpu.memory.physMask - reset = self._mpu.ResetTo & physMask + reset = self._mpu.RESET & physMask dest = self._mpu.memory[reset] + \ (self._mpu.memory[reset + 1] << self.byteWidth) cmd = "goto %08x" % dest @@ -563,8 +563,9 @@ class Monitor(cmd.Cmd): self._output(cwd) def help_load(self): - self._output("load \"filename\"
") + self._output("load