flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution 20 Mar 2023, 10:43
Use rept
Code: rept 1 x:ii+1 { ii equ x } |
|||
![]() |
|
Roman 20 Mar 2023, 10:50
I not understood, how rept help me get oo.1,oo.2,oo.3 ?
I try this. Code: macro vequ a,[p] { ii equ 0 forward rept 1 x:ii+1 \{ ii equ \x \} a#ii equ p display a#.\#ii ; show oo.#1 and fasm error } Sometimes fasm logic not clear. And driving me crazy. Its right ? Code: macro vequ a,[p] { ii equ 0 forward rept 1 x:ii+1 \{ ii equ x \} a#.#\ii equ p ;must do oo.1 then oo.2 then oo.3 or not ? } vequ oo,eax,ebx,ecx,edx |
|||
![]() |
|
Roman 20 Mar 2023, 12:05
Code: ;This work fine. rept 3 n:1 { oo.#n equ n } mov edx,oo.2 ;no error. Compiled ok. ;But this error macro vequ a,[p] { ii equ 0 forward rept 1 x:ii+1 \{ ii equ x a#.\\#ii equ p ;This fasm error oo.#1 equ eax a#.\#ii equ p ;This ok. But in code error mov edx,oo.2 undefined oo.2 \} } vequ oo,eax,ebx,ecx,edx mov edx,oo.2 ;error undefined oo.2 |
|||
![]() |
|
Roman 20 Mar 2023, 13:18
F..ck. Fasm abracadabra.
I do this ! Code: macro vequ a,[p] { ii equ 0 forward rept 1 x:ii+1 \{ ii equ x a#.\#x equ p \} } vequ oo,eax,ebx,ecx,edx mov edx,oo.2 ; no error. Get mov edx,ebx |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.