flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution 03 Jul 2024, 19:48
Kellan2255 wrote: Is there any way to disable optimizations entirely? You can disable the availability of encodings using the processor and coprocessor directives. This will prevent fasmarm from finding some alternative instructions if they are not made available to it. |
|||
![]() |
|
Kellan2255 03 Jul 2024, 20:03
These are instructions that are available in all versions of the ARM architecture.
|
|||
![]() |
|
revolution 03 Jul 2024, 20:25
All instructions have a processor or a coprocessor switch to enable/disable them.
Please give an example of what you are trying to achieve. |
|||
![]() |
|
Kellan2255 03 Jul 2024, 20:59
In this case where I'm trying to test STM with r15 as the base register and various register list combinations
Code: stmib r15, {r0} gets turned into Code: str r0, [r15, #4] The instruction does the same thing. It's just not what I'm trying to test. |
|||
![]() |
|
revolution 03 Jul 2024, 21:20
That is because r15 is not valid as a source register for LDM, so fasmarm will select something else that is valid as a replacement.
Both of those instructions are V1 so you are correct that deselecting a processor bit won't be able to prevent the substitution without modifying the source code. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.