flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
shailesh
Hello,
does fasmarm have any support for extracting the upper16 and lower16 bits to write a macro to load a register with a 32 bit value directly? Regards, Shailesh |
|||
![]() |
|
revolution
Assuming you are using 32-bit code then:
Code: macro movlit reg,value { movw reg,(value) and 0xffff movt reg,(value) shr 16 } movlit r0,0x12345678 |
|||
![]() |
|
revolution
fasmarm uses all the same operators as fasm. You'll need to check the fasm documentation for the basic assembler things and the specific fasmarm documentation for the ARM related stuff.
In essence you'll get: and or xor not shl shr bsr * / + - etc. See the fasm manual for the precedence rules. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2019, Tomasz Grysztar.
Powered by rwasa.