Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.apple2.programmer > #6266

Re: Ctrl-C Interrupt?

Path csiph.com!weretis.net!feeder6.news.weretis.net!border-2.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date Mon, 11 Dec 2023 03:10:13 +0000
Date Sun, 10 Dec 2023 21:10:13 -0600
MIME-Version 1.0
User-Agent Mozilla Thunderbird
From Hugh Hood <hughhood@earthlink.net>
Subject Re: Ctrl-C Interrupt?
Newsgroups comp.sys.apple2.programmer
References <20231210194712.4301d589@smilodon-gracilis>
Content-Language en-US
In-Reply-To <20231210194712.4301d589@smilodon-gracilis>
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
Message-ID <8ROdnZS9bYMI4Ov4nZ2dnZfqnPednZ2d@earthlink.com> (permalink)
Lines 32
X-Usenet-Provider http://www.giganews.com
NNTP-Posting-Host 172.59.193.77
X-Trace sv3-16nxuUQb3YhXVDh3f3zqNAjC/OLWz2WNfOVM/TPPP1X0X/HU0sKDXZsz6I5aPegFl2QBsTj/BnyNjW5!auOmNoU0qslSx63yTycMW32PBDoukFrq9OG0d9B8I4PChli+6whhgtbnI4rxoOyKbVgNCu7QbDcA!SwDe08tzMkchXIKcMEs0G0oEvPtUBU/uog==
X-Abuse-and-DMCA-Info Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info Otherwise we will be unable to process your complaint properly
X-Postfilter 1.3.40
Xref csiph.com comp.sys.apple2.programmer:6266

Show key headers only | View raw


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 | NextPrevious in thread | Next in thread | Find similar


Thread

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