[Coco] intercept routine in Basic09

Robert Gault robert.gault at worldnet.att.net
Wed Jan 20 05:38:05 EST 2010


Wayne Campbell wrote:
> I need to set up a signal intercept call. I have no idea what "address of the intercept routine" is, or "starting address of the routine's memory area", as they relate to anything I can define in Basic09.
>
> I know that the address of the intercept routine indicates the beginning of that routine, and starting address of routine's memory area probably indicates the entry point into the routine. My question is, how do I write this in Basic09 terms?
>
> Do I have to write a object code subroutine to handle this, or can it be done in Basic09?
>
> Wayne
>

If you don't want to involve writing assembly code, your best bet is to 
use ON ERROR GOTO . While errors might not be thought of as a form of 
communication, they are signals sent by processes or the system. User 
errors can be defined if there is not already one that fits your needs.



More information about the Coco mailing list