jacobly0 / fasmg-ez80

fasmg ez80 include files
23 stars 5 forks source link

fasmg breaks when relocation address is inside relocated block #4

Closed mateoconlechuga closed 6 years ago

mateoconlechuga commented 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.

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: image

jacobly0 commented 6 years ago

Fixed in the external relocate macro.