14 January 2024, 18:24 | #1 |
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 ? |
14 January 2024, 19:49 | #2 |
Registered User
Join Date: Jan 2008
Location: Warsaw/Poland
Age: 55
Posts: 2,006
|
|
14 January 2024, 20:14 | #3 |
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.
|
14 January 2024, 20:27 | #4 |
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. |
14 January 2024, 21:20 | #5 |
Registered User
Join Date: Mar 2019
Location: Poland
Posts: 60
|
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..
|
14 January 2024, 22:39 | #6 |
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. |
15 January 2024, 08:18 | #7 | |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
Quote:
Try ASM-Pro that Don Adan linked to in this thread. It is still maintained and it doesn't perform these silent optimisations. |
|
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 |
|
|