You can override
dd with a macro and a struc:
Assuming your rand macro returns the value in a variable named Y
Code: |
macro dd [stuff] {
local found_rand
forward
found_rand equ
match =rand,stuff \{
rand
dd Y
found_rand equ 1
\}
match ,found_rand \{
dd stuff
\}
}
struc dd [stuff] {
common
label . dword at $
dd stuff
}
|
|