English Amiga Board


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

 
 
Thread Tools
Old 14 January 2024, 18:24   #1
Docent
Registered User
 
Join Date: Mar 2019
Location: Poland
Posts: 60
AsmOne - unwanted optimisations

I noticed that AsmOne (the latest one available) performs some micro optimisations like clr.l -> moveq, it also assembles and.l as andi.l. These of course are equivalent instructions so it didnt bothered me earlier but now I need the exact assembly output. Looked throught docs but didnt find any option to disable this functionality. Is this possible ?
Otherwise, as it seems that the last version was released long time ago, is there a source available so I could fix it ?
Docent is offline  
Old 14 January 2024, 19:49   #2
Don_Adan
Registered User
 
Join Date: Jan 2008
Location: Warsaw/Poland
Age: 55
Posts: 2,006
Check this link:

https://eab.abime.net/showthread.php?t=113003
Don_Adan is offline  
Old 14 January 2024, 20:14   #3
R4M
Registered User
 
Join Date: Jan 2019
Location: /home
Posts: 122
There should also be assembler instructions like OPT and BOPT for controlling the optimizations used.
R4M is online now  
Old 14 January 2024, 20:27   #4
Don_Adan
Registered User
 
Join Date: Jan 2008
Location: Warsaw/Poland
Age: 55
Posts: 2,006
It dont works for all assemblers.
In general assembler autooptimisations = more problems for beginners. It never can be DEFAULT option for good assembler for me.
From my memory, exist minimum 3 type of assemblers for Amiga which assembling same code a few different, f.e cmpi as cmp or vice versa.
Because I used internal EaglePlayer patch routine, then for some patches I cant use code, only dc.l and dc.w. And this is the only solution if You need 100% original code.
Don_Adan is offline  
Old 14 January 2024, 21:20   #5
Docent
Registered User
 
Join Date: Mar 2019
Location: Poland
Posts: 60
Quote:
Originally Posted by Don_Adan View Post
Because I used internal EaglePlayer patch routine, then for some patches I cant use code, only dc.l and dc.w. And this is the only solution if You need 100% original code.
I temporarely solved the problem in the same way, but due to source code size (1 mb) I want to keep it readable so I asked.. Seems that I need to switch to another assembler, unfortunately..
Docent is offline  
Old 14 January 2024, 22:39   #6
Don_Adan
Registered User
 
Join Date: Jan 2008
Location: Warsaw/Poland
Age: 55
Posts: 2,006
You can always place code as comment f. e

dc.w $4E75 ; rts

For me this is enough readable.
Don_Adan is offline  
Old 15 January 2024, 08:18   #7
StingRay
move.l #$c0ff33,throat
 
StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
Quote:
Originally Posted by Docent View Post
I noticed that AsmOne (the latest one available) performs some micro optimisations like clr.l -> moveq, it also assembles and.l as andi.l.
Interesting, ASM-One really shouldn't do that if the source is not assembled with enabled optimisations (AO instead of A). This is a bug in my opinion.

Quote:
Originally Posted by Docent View Post
Seems that I need to switch to another assembler, unfortunately..
Try ASM-Pro that Don Adan linked to in this thread. It is still maintained and it doesn't perform these silent optimisations.
StingRay 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
68000 code optimisations pmc Coders. Asm / Hardware 248 17 September 2023 13:20
optimisations for 68000 Galahad/FLT Coders. Asm / Hardware 16 13 January 2023 11:45
Unwanted automatic lowmem-reserving Grex support.Other 5 16 January 2021 20:02
Problem using two real Amiga joysticks: unwanted mouse input! Rinusch support.WinUAE 2 06 February 2007 19:55
WinUAE Unwanted Autofire Problem CodyJarrett support.WinUAE 6 20 December 2001 19:56

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 04:40.

Top

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