English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 24 June 2024, 19:26   #1
Hedeon
Semi-Retired
 
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 2,047
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,
Hedeon is offline  
Old 25 June 2024, 00:01   #2
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,546
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 0
in m68k.

I recommend to use the current-PC symbol in these situations, which is
*
for m68k and
$
for PPC:
Code:
        bsr     *
        bl      $
phx is offline  
Old 25 June 2024, 14:16   #3
Hedeon
Semi-Retired
 
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 2,047
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
Hedeon is offline  
Old 25 June 2024, 14:18   #4
Hedeon
Semi-Retired
 
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 2,047
The line was used to build a jump table and of course all the calculated offsets were now wrong.

Thanks again.
Hedeon is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 14:40.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07212 seconds with 15 queries