flat assembler
Message board for the users of flat assembler.
![]() |
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. |
|||
![]() |
|
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. |
|||
![]() |
|
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 ![]() |
|||
![]() |
|
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.
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.