flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Rept problem. |
Author |
|
revolution 08 Sep 2024, 06:26
xmDat is undefined. So xmDat + 16 is also undefined.
|
|||
08 Sep 2024, 06:26 |
|
Roman 08 Sep 2024, 06:45
This variant work.
Code: DbgCC equ 0 macro dbg [a] { rept 1 n: DbgCC+16 \{ movaps dqword [xmDat+DbgCC], xmm#a DbgCC equ n \}} ;align 16 xmDat rd 8000 ;in code dbg 1 |
|||
08 Sep 2024, 06:45 |
|
revolution 08 Sep 2024, 06:52
Doesn't work for me.
Code: flat assembler version 1.73.31 (16384 kilobytes memory) test.asm [7]: dbg 1 test.asm [2] dbg [0]: macro dbg [a] { rept 1 n: DbgCC+16 \{ movaps dqword [xmDat+DbgCC], xmm#a test.asm [2] rept [0]: macro dbg [a] { rept 1 n: DbgCC+16 \{ movaps dqword [xmDat+DbgCC], xmm#a processed: movaps dqword[xmDat+0],xmm1 error: undefined symbol 'xmDat'. BTW: you don't need rept there, since the "+16" can be evaluated by the assembler just fine. |
|||
08 Sep 2024, 06:52 |
|
revolution 08 Sep 2024, 06:54
Code: xmDat = 0x12345678 DbgCC equ 0 macro dbg [a] { movaps dqword [xmDat+DbgCC], xmm#a DbgCC equ DbgCC + 16 } dbg 1 |
|||
08 Sep 2024, 06:54 |
|
Roman 08 Sep 2024, 08:13
Quote: Doesn't work for me. Just write in data: Code: align 16 xmDat dd or rd 800 |
|||
08 Sep 2024, 08:13 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.