02-06-2025, 05:26 PM
Hello @funkheld,
I explain it in detail in my book: https://www.amazon.co.uk/dp/B0CQD65FXZ
Here is the source code of an application that implements bank switching with code execution: https://github.com/Duefectu/BorielBasicG...re/Demo128
In summary, for example: you need to divide your code into a main module that does not exceed the memory address $c000 and create modules of less than 16K that run at $c000. To achieve this, you must split your code and define the variables you want to share in a fixed memory area.
Take a look, and if you have any questions, feel free to ask me.
I explain it in detail in my book: https://www.amazon.co.uk/dp/B0CQD65FXZ
Here is the source code of an application that implements bank switching with code execution: https://github.com/Duefectu/BorielBasicG...re/Demo128
In summary, for example: you need to divide your code into a main module that does not exceed the memory address $c000 and create modules of less than 16K that run at $c000. To achieve this, you must split your code and define the variables you want to share in a fixed memory area.
Take a look, and if you have any questions, feel free to ask me.