flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
ProMiNick 17 Jan 2019, 09:40
offtopic: for defining signextended constants in crossbit form:
Code: _x64 equ (-$80000000) or NOT_IMPLEMENTED = _x64($80400000) dd NOT_IMPLEMENTED ; $80400000 no error dq NOT_IMPLEMENTED ; $FFFFFFFF80400000 ;or that could be even more readable _$FFFFFFFF equ (-$80000000) or NOT_IMPLEMENTED = _$FFFFFFFF($80400000) ; looks very beauty for eye no comment needed) dd NOT_IMPLEMENTED ; $80400000 no error dq NOT_IMPLEMENTED ; $FFFFFFFF80400000 |
|||
![]() |
|
revolution 17 Jan 2019, 09:50
If we remove the unneeded brackets and rename it to something more descriptive, then it looks nicer to me. And it is easier to type.
Code: high_bits = -0x80000000 NOT_IMPLEMENTED = high_bits or 0x80400000 |
|||
![]() |
|
ProMiNick 17 Jan 2019, 10:06
revolution, things that looks ABSOLUTELY nicer - not perfect: nobody cancel operation order - without brackets you got -(0x80000000 or 0x80400000) = $7FC00000 - that isn`t that value that you needed.
my variant is compromise of as much as possible of readability and workability. |
|||
![]() |
|
revolution 17 Jan 2019, 10:30
ProMiNick wrote: nobody cancel operation order - without brackets you got -(0x80000000 or 0x80400000) = $7FC00000 - that isn`t that value that you needed. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.