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
Adding BASIC command to the X16 kernal
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 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.
- JimmyDansbo
- Posts: 476
- Joined: Sun Apr 26, 2020 8:10 pm
- Location: Denmark
- Contact:
Adding BASIC command to the X16 kernal
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
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
Re: Adding BASIC command to the X16 kernal
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.
- JimmyDansbo
- Posts: 476
- Joined: Sun Apr 26, 2020 8:10 pm
- Location: Denmark
- Contact:
Re: Adding BASIC command to the X16 kernal
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
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
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
- ahenry3068
- Posts: 1132
- Joined: Tue Apr 04, 2023 9:57 pm
Re: Adding BASIC command to the X16 kernal
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.
-
- Posts: 138
- Joined: Tue Jul 21, 2020 10:08 pm
Re: Adding BASIC command to the X16 kernal
I would SO love to see this.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.
Forking the ROM might introduce IP/licensing issues as it would include a substantial copy of the BASIC interpreter, would it not?