flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > Do address spaces have a sign ? |
Author |
|
l_inc 18 Dec 2012, 13:17
shutdownall
Not sure, what you mean under an "address space sign", but addresses can definitely have a sign (and, obviously, an address space can start with such a negative address). Especially in the context of the 64-bit "canonical addressing". |
|||
18 Dec 2012, 13:17 |
|
baldr 18 Dec 2012, 19:56
shutdownall,
This is probably because fasm uses 65-bit values internally. |
|||
18 Dec 2012, 19:56 |
|
shutdownall 18 Dec 2012, 20:09
l_inc wrote: shutdownall Okay - this is new to me. Do you have an example ? |
|||
18 Dec 2012, 20:09 |
|
l_inc 19 Dec 2012, 14:56
shutdownall
An example of what? Negative address in fasm? Here it is: Code: org -$10 dw $ dd $-2 dq $-6 Sure, there are no easter egg memory locations addressable with a negative address. Thus the value just wraps around. In some cases like canonical addressing this could be convenient. |
|||
19 Dec 2012, 14:56 |
|
shutdownall 30 Dec 2012, 00:09
l_inc wrote:
What a pity. Anyway thanks, I never thought about using these address techniques. |
|||
30 Dec 2012, 00:09 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.