You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On CBM machines (including the Commander X16) it is possible to load and execute a new file by pushing an address to the stack, then jmp-ing to LOAD.
But for this to be possible, you have to be able to compile your code to a binary file with a fixed entry point (ideally the start of the file).
Would it be possible to add the necessary CLI options, so that a file with fixed entry point, and ideally no BASIC header and no renewed hardware initialisation (outside of what's actively necessary to run C) could be generated?
The text was updated successfully, but these errors were encountered:
ToboterXP
changed the title
C-callable binaries on CBM/X16
LOADable binaries on CBM/X16
Oct 2, 2024
What you describe should be possible with a custom linker script; have a look in the mos-hardware/commodore/ and derived directories for the link.ld file.
On CBM machines (including the Commander X16) it is possible to load and execute a new file by pushing an address to the stack, then jmp-ing to LOAD.
But for this to be possible, you have to be able to compile your code to a binary file with a fixed entry point (ideally the start of the file).
Would it be possible to add the necessary CLI options, so that a file with fixed entry point, and ideally no BASIC header and no renewed hardware initialisation (outside of what's actively necessary to run C) could be generated?
The text was updated successfully, but these errors were encountered: