Adding BASIC command to the X16 kernal

Tutorials and help articles.

(Posts require approval. See pinned post.)
Forum rules
Post guides, tutorials, and other instructional content here.

This topic area requires approval, so please be patient while we review content to make sure it fits the expectations for this topic area.

Tech support questions should be asked in Hardware or Software support.
Post Reply
User avatar
JimmyDansbo
Posts: 476
Joined: Sun Apr 26, 2020 8:10 pm
Location: Denmark
Contact:

General - CX16 Adding BASIC command to the X16 kernal

Post 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
Visit my Github repo
or my personal site with CX16/C64/6502 related information.
Feel free to contact me regarding any of my projects or even about meeting up somewhere near Denmark
mgkaiser
Posts: 60
Joined: Sat Dec 02, 2023 6:49 pm

Re: Adding BASIC command to the X16 kernal

Post 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.
User avatar
JimmyDansbo
Posts: 476
Joined: Sun Apr 26, 2020 8:10 pm
Location: Denmark
Contact:

Re: Adding BASIC command to the X16 kernal

Post 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
Visit my Github repo
or my personal site with CX16/C64/6502 related information.
Feel free to contact me regarding any of my projects or even about meeting up somewhere near Denmark
User avatar
ahenry3068
Posts: 1132
Joined: Tue Apr 04, 2023 9:57 pm

Re: Adding BASIC command to the X16 kernal

Post 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.
Martin Schmalenbach
Posts: 138
Joined: Tue Jul 21, 2020 10:08 pm

Re: Adding BASIC command to the X16 kernal

Post 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?
Post Reply