flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution
Put the data into a virtual block.
Code: virtual at 0 my_data:: db ... end virtual ;... load x from my_data:%-1 ;... |
|||
![]() |
|
zhak
Worked like a charm! Thanks!
|
|||
![]() |
|
Roman
Code: Start: sub rsp,8 virtual at 0 my_data dd 88 end virtual mov eax,[my_data] IDA Pro 64 bit show: sub rsp,8 mov eax,cs:0 !!! But fasmw 1.73 compile fine. |
|||
![]() |
|
revolution
Roman wrote:
Your code it the same as: Code: use64 sub rsp,8 mov eax,[0] |
|||
![]() |
|
Roman
my_data dd 88
But how in my case get mov eax,[my_data] ? And eax = 88 PS: I like virtual data because could write data in code ! Some time its very handfull. |
|||
![]() |
|
revolution
You can't get virtual data at runtime. The data only exists in the assembler memory.
If you want the data to exist in the code then you just eliminate the virtual block: Code: use64 my_data dd 88 ; <--- real data put into the output start: mov eax,[my_data] |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.