flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Tomasz Grysztar 24 Oct 2016, 17:08
In long mode there are no DS/SS segments (segment prefixes also would not have any effect). The generated instructions are completely equivalent.
|
|||
![]() |
|
revolution 25 Oct 2016, 06:51
Tomasz Grysztar wrote: The generated instructions are completely equivalent. So for the OP, if you need it like this then it would be best to manually re-encode the required instruction after assembly. You can still use a template instruction as the base and then manually encode the two registers as required for the purpose. |
|||
![]() |
|
Tomasz Grysztar 25 Oct 2016, 08:11
revolution wrote: Equivalent, yes, but not the same. While I agree with the generalisation of the register assignments, I think it is important to have the users be aware that this can happen. If someone wanted to generate code on-the-fly (i.e. SMC) and expects the second register to always be encoded the same then they will get problems. |
|||
![]() |
|
revolution 25 Oct 2016, 08:16
Tomasz Grysztar wrote: I already stated many times that fasm's instruction syntax focuses on the function of the instruction and the assembler is free to choose any form it wishes while it tries to optimize them for size. |
|||
![]() |
|
Tomasz Grysztar 25 Oct 2016, 08:19
Perhaps some general principles like this one should be better emphasized in the manual. That's another of the many improvements fasm's old manual could use...
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.