Page 1 of 1
Adding BASIC command to the X16 kernal
Posted: Thu Feb 29, 2024 7:10 pm
by JimmyDansbo
I have tried to do a writeup of what is needed to add a new statement or function to BASIC on the Commander X16
Have a look at
https://techblog.dansbo.dk/?p=91
Re: Adding BASIC command to the X16 kernal
Posted: Fri Mar 01, 2024 3:52 pm
by mgkaiser
This is great if you wish to fork and recompile the ROM. Is there a vector available to add "soft" changes? I know there were numerous "wedges" that did this on the C64, but it would be nice if we could design in from the beginning an interface to just hook a vector to extend BASIC.
Re: Adding BASIC command to the X16 kernal
Posted: Sat Mar 02, 2024 7:48 pm
by JimmyDansbo
I believe that the USR function is supported on the CX16 just like it is on the C64
https://www.c64-wiki.com/wiki/USR
Re: Adding BASIC command to the X16 kernal
Posted: Sat Mar 02, 2024 8:11 pm
by ahenry3068
You can also either Bload or Poke Machine code and call it with SYS ..... This is the easiest way to extend BASIC on a one off basis.
Re: Adding BASIC command to the X16 kernal
Posted: Sat Jun 29, 2024 3:55 pm
by Martin Schmalenbach
mgkaiser wrote: ↑Fri Mar 01, 2024 3:52 pm
This is great if you wish to fork and recompile the ROM. Is there a vector available to add "soft" changes? I know there were numerous "wedges" that did this on the C64, but it would be nice if we could design in from the beginning an interface to just hook a vector to extend BASIC.
I would SO love to see this.
Forking the ROM might introduce IP/licensing issues as it would include a substantial copy of the BASIC interpreter, would it not?