flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > how can I store values to another address space? |
Author |
|
Tomasz Grysztar 08 Apr 2006, 12:00
It's not possible.
|
|||
08 Apr 2006, 12:00 |
|
dead_body 08 Apr 2006, 12:38
so I can't define data to section '.data' from section 'code', if '.data' is before section '.code'?
Maybe it is time to add a new directive? in masm there was macros to add data from code, but there it was possible, because there was linker and it overeating sections in one. I always use that macros, and I want that macros in fasm. Or maybe it can be done with standart techniques? |
|||
08 Apr 2006, 12:38 |
|
vid 10 Apr 2006, 19:56
extremely ugly unusable idea how to (probably) do it. Take it as joke.
Code: Mydata db Mydata_value ... virtual at 0 Mydata db 123 Mydata_value load byte from $-1 end virtual really, not usuable, just a way to forward-refence data value. not sure if it works |
|||
10 Apr 2006, 19:56 |
|
daluca 04 Aug 2006, 06:24
you can't reserve data of unknown size: my_data_size must be
a constant at assembly-time. if you are going to calculate the size at run-time you can use the VirtualAlloc windows function to reserve space and alocate data there even code. |
|||
04 Aug 2006, 06:24 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.