flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
cod3b453 31 Dec 2011, 11:34
This can be achieved using macros:
Code: struc dw val { . dw val .typeof equ word } struc dd val { . dd val .typeof equ dword } macro store val,id { store id#.typeof val at id } x dd 0 store 0x12345678,x ;y dw 0 ; ;store 0x10000,y |
|||
![]() |
|
AsmGuru62 31 Dec 2011, 12:32
If something declared as DD -- it is already a DWORD, so no need for the override, the following works with no macros:
Code: x dd ? ... mov [x], 0x12345678 What am I missing? |
|||
![]() |
|
cod3b453 31 Dec 2011, 12:41
store is a compile time operation (and may be performed inside a virtual) but mov is a runtime operation.
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.