24 June 2024, 19:26 | #1 |
Semi-Retired
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 2,064
|
VASM change to PPC assembly.
Hi Phx,
Was it intentional that 'bl 0x0' now takes the start address of the code instead of a jump to itself? (it used to compile to 0x48000001 now it compiles to 0x48<negative jump to start of code>. Not sure in which vasm it changed. Regards, |
25 June 2024, 00:01 | #2 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,556
|
According to my logs this might have changed more than four years ago. It simplified the code of all backends and the expression evalulator, especially concerning absolute ORG-mode and relative references to absolute addresses.
I admit it looks strange in relocatable section mode, because the current PC is not really an absolute address but a section offset. But at least it looks the same in all other backends, e.g. with bsr 0in m68k. I recommend to use the current-PC symbol in these situations, which is *for m68k and $for PPC: Code:
bsr * bl $ |
25 June 2024, 14:16 | #3 |
Semi-Retired
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 2,064
|
Thanks for the suggestion. Yes, i upgraded after quite a while and get all kinds of warnings now (we discussed those before). But this one was a silent one crashing my library. I had to diff the two objects files, one generated years ago and one this week. I guess i should update faster and read the changelog
|
25 June 2024, 14:18 | #4 |
Semi-Retired
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 2,064
|
The line was used to build a jump table and of course all the calculated offsets were now wrong.
Thanks again. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
VS Code Amiga assembly extension and vasm+vlink | hooverphonique | Coders. Asm / Hardware | 3 | 27 February 2024 18:08 |
VASM - Question on conditional assembly | RoC | Coders. Asm / Hardware | 3 | 02 July 2023 21:50 |
Question about XREF vs XDEF (vasm 1.8 vs vasm 1.9) | roondar | Coders. Asm / Hardware | 8 | 01 May 2023 20:59 |
Change in behavior in recent VASM upgrade | Hannibal | Coders. Asm / Hardware | 0 | 20 October 2019 23:28 |
Is It Possible To Change PPC CPU? | CU_AMiGA | support.Hardware | 7 | 27 September 2006 19:54 |
|
|