MEGA65 / mega65-tools

Tools and Utilities for the MEGA65 Retro Computers
GNU General Public License v3.0
29 stars 31 forks source link

M65: Add softreset option #50

Closed jesperrula closed 3 years ago

jesperrula commented 3 years ago

It would be nice if there was an option to do a softreset instead of a full core reset when sending a file to the Mega65. It could save a lot of waiting time each time we compile and run a prg. Any other ideas for making the push of PRG's to the Mega65 faster would be very welcome too.

gurcei commented 3 years ago

Hmm, I recently bumped into the SYS 58552 call to perform a soft-reset from C64 back to C65-mode.

I'm wondering if there's any other SYS-call to perform the soft-reset while still in C65 mode?

If so, you could get m65 to type such a command for you, with something like m65 -l COM7 -T "sys 58552"

gurcei commented 3 years ago

TheChief in discord made the following suggestions:

Please try $F9A7 / 63911 @C65 mode, like $FCE2 / 64738 @C64 mode, this is where the address $FFFC/FFFD for the reset / power on vector points to

gurcei commented 3 years ago

Just to confirm, were you presently using the '-F' argument and is this the reset behaviour you found too slow?

Just wanted to confirm this first, in-case you weren't using it, and perhaps you could give it a try and see if it suited your needs.

gurcei commented 3 years ago

Tayger has told me that the -F argument resets things quite fast already. Given that, I think it's ok for me to close this ticket.