[Coco] Intercepting commands like POKE?

RETRO Innovations go4retro at go4retro.com
Thu Jan 4 14:18:22 EST 2024


On 1/4/2024 11:55 AM, William Astle via Coco wrote:
>> I have a project where I’d like to intercept things like PRINT@ and 
>> POKE. Does anyone here know anything about that? I don’t even know 
>> where to begin, outside of using a 64K machine and going in to 
>> ROM-to-RAM mode and just patching BASIC.
>
>
> You definitely do *NOT* want to try intercepting commands via the 
> "GETNCH" ($9F) routine as suggested by others. You could do it, but 
> you *really* don't want to. Doing so will slow everything down some 
> amount instead of just command processing and you don't actually have 
> the full context when that routine is called since it's called from 
> all over the place.
>
>
If there are better ways to intercept a command, so be it, but if there 
is no where in RAM to patch the command Allen is looking to extend, 
GETNCH may be the *ONLY* way short of copying BASIC into RAM to 
implement the extension.

Jim


-- 
RETRO Innovations, Contemporary Gear for Classic Systems
www.go4retro.com
store.go4retro.com



More information about the Coco mailing list