flat assembler
Message board for the users of flat assembler.
Index
> Main > confused about virtual |
Author |
|
revolution 16 Nov 2016, 01:56
By default fasm uses RIP relative addressing, and you can't reach 0x0 from 0x40000000000 with a 31 bit offset. To use absolute addressing you can use this:
Code: mov rax,[gs:qword abc] |
|||
16 Nov 2016, 01:56 |
|
funggong 16 Nov 2016, 02:24
revolution wrote: By default fasm uses RIP relative addressing, and you can't reach 0x0 from 0x40000000000 with a 31 bit offset. To use absolute addressing you can use this: thanks revolution,I am developing a 64bit kernel now,andwill type more letter to addressing cpu private data ^_^ |
|||
16 Nov 2016, 02:24 |
|
funggong 16 Nov 2016, 02:33
revolution wrote: By default fasm uses RIP relative addressing, and you can't reach 0x0 from 0x40000000000 with a 31 bit offset. To use absolute addressing you can use this: but this type of code generate more binary byte,a better way to addressing cpu self data struct? |
|||
16 Nov 2016, 02:33 |
|
revolution 16 Nov 2016, 02:42
funggong wrote: but this type of code generate more binary byte, ... funggong wrote: ... a better way to addressing cpu self data struct? |
|||
16 Nov 2016, 02:42 |
|
funggong 16 Nov 2016, 02:51
revolution wrote:
may be I am worry about more detail aspect of the design,thanks your suggestion,I try to make it work first |
|||
16 Nov 2016, 02:51 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.