[Coco] Intercepting commands like POKE?

Ciaran Anscomb cocomalt at 6809.org.uk
Thu Jan 4 15:09:39 EST 2024


William Astle via Coco wrote:
> On 2024-01-04 12:18, RETRO Innovations via Coco wrote:
> > 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.
> 
> The main interpretation loop has a RAM hook. That should get most of the 
> way there. Extended Basic already does something similar to catch CLOAD 
> and CSAVE (and also handle TIMER= and MID$()= ).

Bit wasteful but you could also copy/modify the dispatch table and modify
the commands stub to point to your copy...

..ciaran


More information about the Coco mailing list