Hello,
I wonder if the following approach might work to implement the modification of the S19 file generated for the code to operate from RAM - that is to use readily available utilities to convert from S19 to binary image, and then back again to S19 using a different address offset value.
Another possibility might be to convert the binary image to a sequence of DC.B directives that can be appropriately ORGed, and assembled, buy not sure if a utility is available to do this.
Regards,
Mac
moved_Groan: equ Groan-$F400+$500You would then call the subroutine by using the new address:
jsr moved_GroanI personally would use equates instead of hard-coded addresses:
RamBase: equ $500 FlashBase: equ $F400 moved_Groan: equ Groan-FlashBase+RamBaseLikewise, you can use that approach if you need to access data that has also been relocated. Simply use the offsets to calculate the real address of the moved data.