Closed mateoconlechuga closed 6 years ago
So I am writing an program using app.inc (buildable here on branch feature/cesium-rewrite with fasmg src/cesium.asm cesium.8xp), and there appears to be an issue with relocated blocks.
feature/cesium-rewrite
fasmg src/cesium.asm cesium.8xp
I have pushed this snippet of code to replicate:
https://github.com/mateoconlechuga/cesium/blob/38a44a52d85e70592986408a5cf34a2528c8c716/src/cesium.asm#L16-L20
relocate bad_fasmg, $d00000 call bad_label end relocate bad_label:
It seems I cannot call a routine that exists in relocated flash from a different relocated block. Any help would be much appreciated :)
The error given is shown below:
Fixed in the external relocate macro.
So I am writing an program using app.inc (buildable here on branch
feature/cesium-rewrite
withfasmg src/cesium.asm cesium.8xp
), and there appears to be an issue with relocated blocks.I have pushed this snippet of code to replicate:
https://github.com/mateoconlechuga/cesium/blob/38a44a52d85e70592986408a5cf34a2528c8c716/src/cesium.asm#L16-L20
It seems I cannot call a routine that exists in relocated flash from a different relocated block. Any help would be much appreciated :)
The error given is shown below: