flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Mutable code. Problem with size. |
Author |
|
revolution 11 Jun 2024, 09:39
Code1 and Code2 and Code3 are all the same value.
You need to define offsets separately. Code: Virtual at 0 Code:: ; <--- only one label needed for load/store ;define a base label for the offsets my_stuff: .code1: inc dword [.data1] .data1 dd 0,1,2,3 .code2: add dword [.data2],2 .data2 dd 0,1,2,3 end virtual ;... muk = my_stuff.data1 - my_stuff.code1 |
|||
11 Jun 2024, 09:39 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.