flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
macomics 19 Aug 2023, 10:14
And where did you find this in the MZ/PE/PE64 format?
If you need it so much, then no one prevents you from allocating a section through VirtualAlloc and writing code that performs these actions (placing data in it from data.txt). After all, there is a mapping file. |
|||
![]() |
|
Roman 19 Aug 2023, 10:26
Quote:
This not good for Macro and preprocessing. |
|||
![]() |
|
macomics 19 Aug 2023, 18:21
Code: include 'macros.txt' ;some part push to section cases include 'data.txt' ;some data push to section cases section code ... section data ... virtual at rbx ; section cases ... end virtual |
|||
![]() |
|
Roman 19 Aug 2023, 19:35
Not understood how i could from include 'macros.txt' or section code
push code in virtual at rbx ; in section cases ? I know this: Code: ;first describing virtual virtual at ebx label1 dw ? label2 dd ? end virtual ;than using in code mov ax,[label1] ;will be assembled mov ax,[ebx] |
|||
![]() |
|
macomics 19 Aug 2023, 21:23
Roman wrote: Not understood how i could from include 'macros.txt' or section code Code: macro push_cases { push_cases_label: virtual at rbx } ; from macros.txt include 'macros.txt' ;some part push to section cases include 'data.txt' ;some data push to section cases ; from data.txt macro push_cases { push_cases cases0 dd 1000 dup (0) ; ... } ; ---- end data.txt ---- section code lea rbx, [push_cases_label] mov eax, [cases0 + 15 * 4] ... section data ... ; virtual at rbx ; section cases push_cases end virtual |
|||
![]() |
|
Roman 20 Aug 2023, 08:22
Virtual in data section looking like as rd in bss section.
If I want from code add news values? If I do macro New I apply New value. If I not in code using macro New I not gets any values. Using in macro new equ counter+1 ? Quote:
You writed this hands , i want auto fill(not hands) |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.