-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PRG send causes BS Monitor's X command to fail #129
Comments
Trying with the refactor-ftp branch,
|
It appears some bytes at
These locations need to be preserved for a clean exit from the monitor. Original code before it is overwritten:
|
should be fixed in refactor-m65 |
fix: remove DLOAD/breakpoint stuff from prg loading MEGA65#128 MEGA65#129
commit d35e7d8 Merge: 019960f 7346959 Author: Dan Sanderson <contact@dansanderson.com> Date: Sat Jul 30 11:16:05 2022 -0700 Merge pull request #2 from MEGA65/refactor-m65 fix: remove DLOAD/breakpoint stuff from prg loading #128 #129 commit 7346959 Author: Oliver Graf <ograf@devilsclaw.de> Date: Sat Jul 30 20:07:20 2022 +0200 fix: remove duplicate progress_to_RTI #128 it's in m65common.c after all! commit 99caf1a Author: Oliver Graf <ograf@devilsclaw.de> Date: Sat Jul 30 20:02:30 2022 +0200 fix: removing bunch off flushes and RTI used by screenshot #128 fflush(stderr) is normally unneeded as stderr is unbuffered. progress_to_RTI is only used by screen_shot.c, so put it there. commit 7cec280 Merge: c913689 24d2cf3 Author: Oliver Graf <ograf@devilsclaw.de> Date: Sat Jul 30 19:57:28 2022 +0200 Merge branch 'dansanderson-refactor-m65' into refactor-m65 commit 24d2cf3 Merge: c913689 019960f Author: Oliver Graf <ograf@devilsclaw.de> Date: Sat Jul 30 19:57:01 2022 +0200 Merge branch 'refactor-m65' of github.com:dansanderson/mega65-tools into dansanderson-refactor-m65 commit c913689 Author: Oliver Graf <ograf@devilsclaw.de> Date: Sat Jul 30 19:37:22 2022 +0200 fix: remove DLOAD/breakpoint stuff from prg loading #128 #129 commit 019960f Author: Dan Sanderson <contact@dansanderson.com> Date: Sat Jul 30 10:29:42 2022 -0700 Add print_screencode public declaration; remove unused screen_shot externs; fix screen_shot.c screencode table formatting commit c3e8df0 Author: Dan Sanderson <contact@dansanderson.com> Date: Sat Jul 30 10:17:46 2022 -0700 Restore init_cmd_options() special formatting (from merge) commit a4abcc7 Author: Dan Sanderson <contact@dansanderson.com> Date: Sat Jul 30 10:14:15 2022 -0700 Re-removing lines from gitignore (from merge) commit 3112a07 Author: Dan Sanderson <contact@dansanderson.com> Date: Sat Jul 30 10:09:53 2022 -0700 Restoring lost line from Makefile commit 825375f Author: Dan Sanderson <contact@dansanderson.com> Date: Sat Jul 30 10:08:19 2022 -0700 Removing .vscode commit 92b2b52 Author: Dan Sanderson <contact@dansanderson.com> Date: Sat Jul 30 10:07:15 2022 -0700 Hide .vscode from git commit 1811c6c Author: Dan Sanderson <contact@dansanderson.com> Date: Sat Jul 30 10:05:08 2022 -0700 make format commit be81c19 Merge: 8aa927b c96121b Author: Dan Sanderson <contact@dansanderson.com> Date: Sat Jul 30 09:56:20 2022 -0700 Merge branch 'MEGA65-refactor-m65' into refactor-m65 commit c96121b Author: Dan Sanderson <contact@dansanderson.com> Date: Sat Jul 30 00:43:10 2022 +0000 Most of m65dbg, with stubs for serial calls commit fb8b17d Author: Dan Sanderson <contact@dansanderson.com> Date: Fri Jul 29 23:32:09 2022 +0000 Moved progress_to_RTI to m65common; relocated shared storage from m65 to screen_shot; moved m65dbg.c to a subdir; make format of changed files only commit 3f568a4 Author: Dan Sanderson <contact@dansanderson.com> Date: Fri Jul 29 22:58:51 2022 +0000 Starter for m65dbg; Makefile, README, gitignore clean-up commit 8aa927b Author: Dan Sanderson <contact@dansanderson.com> Date: Sat Jul 30 00:43:10 2022 +0000 Most of m65dbg, with stubs for serial calls commit b6aacd8 Author: Dan Sanderson <contact@dansanderson.com> Date: Fri Jul 29 23:32:09 2022 +0000 Moved progress_to_RTI to m65common; relocated shared storage from m65 to screen_shot; moved m65dbg.c to a subdir; make format of changed files only commit 23a3969 Author: Dan Sanderson <contact@dansanderson.com> Date: Fri Jul 29 22:58:51 2022 +0000 Starter for m65dbg; Makefile, README, gitignore clean-up
also fixed in merge2-m65dbg |
The latest in merge2-m65dbg resolves this issue. Per @lydon42 I'll close this ticket. Thanks very much! |
Test Environment (required)
Describe the bug
Something about the way m65 sends PRG files confuses BS Monitor's
X
command. TheX
command is supposed to exit to BASIC, but if the program was sent via m65/M65Connect,X
actually goes somewhere else then re-breaks back into the monitor with PC002005
(which is a weird PC because that's in BASIC memory).To Reproduce
m65 -l /dev/cu... somefile.prg
READY.
prompt, typeMONITOR
. BS Monitor opens.X
, hit Return.Expected behavior
The
X
command is supposed to exit the monitor and return to BASIC. It works if no program is loaded, or if a program is loaded from disk/SD card. It doesn't matter if the monitor was invoked by theMONITOR
command or abrk
instruction from the program.Instead, the monitor attempts to exit, but then re-breaks with the PC at 002005. This appears to be true only if the PRG was transferred by m65/M65Connect. The content of the program does not appear to matter, and you don't have to run the program to reproduce the issue.
Additional context
Here's the beginning of
monexit
, which is whereX
goes:(Issue relocated from MEGA65/m65connect#11.)
The text was updated successfully, but these errors were encountered: