flat assembler
Message board for the users of flat assembler.
Index
> Non-x86 architectures > [fasmarm] using BX |
Author |
|
pepe 18 Jun 2015, 19:12
hmm, answering myself....
the situation is strange, it was caused by the BX instruction (BX Reset). if i used B or BL, it compiled ok, which is odd. |
|||
18 Jun 2015, 19:12 |
|
revolution 19 Jun 2015, 00:42
The BX instruction only supports register destinations. There is no BX encoding for immediate offsets.
If you want to declare external constants then you have to use a format that is linkable. |
|||
19 Jun 2015, 00:42 |
|
pepe 19 Jun 2015, 05:33
Linkable: yes, i was thinking about that too, since 'include' only inserts the content into the main file, that's why i thought it should work...
BX: i told in the beginning it is a lame question But thank you for all your answers and reading my lame posts |
|||
19 Jun 2015, 05:33 |
|
revolution 19 Jun 2015, 05:49
Everyone is welcome to ask as many "lame" questions as they wish. In your case the answer was not obvious so it was worthwhile to explain the restrictions for BX that the other B* instructions don't have.
|
|||
19 Jun 2015, 05:49 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.