Groups | Search | Server Info | Login | Register
Groups > comp.sys.apple2.programmer > #6266
| Date | 2023-12-10 21:10 -0600 |
|---|---|
| From | Hugh Hood <hughhood@earthlink.net> |
| Subject | Re: Ctrl-C Interrupt? |
| Newsgroups | comp.sys.apple2.programmer |
| References | <20231210194712.4301d589@smilodon-gracilis> |
| Message-ID | <8ROdnZS9bYMI4Ov4nZ2dnZfqnPednZ2d@earthlink.com> (permalink) |
On 12/10/2023 6:47 PM, Bill Chatfield wrote: > Is there any way to have Ctrl-C interrupt a BIN program like it does > a Basic program? I know Ctrl-Reset will do it, but that messes up > the screen and probably other things too. > Bill, Are you able to patch the particular BIN program? If so, I might suggest you inject a JMP somewhere in the program's main 'run' loop to some new code you graft onto the end of the code. The new code would save the registers, poll the keyboard, check for a CTRL-C, and just BRK if a CTRL-C is found. If not, just add whatever code you messed up by inserting the JMP to the new code, restore the registers, and then JMP back to where the program was interrupted. Or, if the program already is polling the keyboard for some input, can you just re-purpose a key you don't normally need to do the same, or maybe JMP to a routine to add the check for CTRL-C? Just some thoughts. Maybe none of them are appealing. I'm assuming you're not using a IIgs where you can interrupt and Visit the Monitor. Hugh Hood
Back to comp.sys.apple2.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
Ctrl-C Interrupt? Bill Chatfield <bill_chatfield@yahoo.com> - 2023-12-10 19:47 -0500
Re: Ctrl-C Interrupt? fadden <fadden@fadden.com> - 2023-12-10 17:54 -0800
Re: Ctrl-C Interrupt? Bill Chatfield <bill_chatfield@yahoo.com> - 2023-12-11 10:07 -0500
Re: Ctrl-C Interrupt? Hugh Hood <hughhood@earthlink.net> - 2023-12-10 21:10 -0600
Re: Ctrl-C Interrupt? Bill Chatfield <bill_chatfield@yahoo.com> - 2023-12-11 10:09 -0500
Re: Ctrl-C Interrupt? Oliver Schmidt <ol.sc@web.de> - 2023-12-11 19:10 +0000
Re: Ctrl-C Interrupt? Bill Chatfield <bill_chatfield@yahoo.com> - 2023-12-11 15:39 -0500
Re: Ctrl-C Interrupt? Oliver Schmidt <ol.sc@web.de> - 2023-12-12 20:36 +0000
Re: Ctrl-C Interrupt? Bill Chatfield <bill_chatfield@yahoo.com> - 2023-12-12 23:55 -0500
Re: Ctrl-C Interrupt? I am Rob <gids.rs@sasktel.net> - 2023-12-10 20:30 -0800
Re: Ctrl-C Interrupt? Bill Chatfield <bill_chatfield@yahoo.com> - 2023-12-11 10:11 -0500
csiph-web