flat assembler
Message board for the users of flat assembler.
Index
> Windows > Maybe, something as error? |
Author |
|
LocoDelAssembly 11 Sep 2009, 19:39
Do the following change:
Code: macro ascii2bin { ;in edi pointer to data mov ebx,10 xor eax,eax mov ecx,eax ..aa: mul ebx xor edx,edx mov dl,[edi] xor dl,30h add eax,edx inc edi test edx,edx jz @f ;out in eax loop ..aa @@: } The original label "aa" was hiding label ".wmdestroy". Another (not very good) solution would be prefixing the offending references with "aa." (like "je aa.wmdestroy"). |
|||
11 Sep 2009, 19:39 |
|
revolution 11 Sep 2009, 22:08
I think it is better to use local labels in macros:
Code: macro ascii2bin { ;in edi pointer to data local .loop mov ebx,10 xor eax,eax mov ecx,eax .loop: mul ebx xor edx,edx mov dl,[edi] xor dl,30h add eax,edx inc edi test edx,edx jz @f ;out in eax loop .loop @@: } |
|||
11 Sep 2009, 22:08 |
|
6a00 12 Sep 2009, 12:50
Thank you. I realized where is the problem. But what about label ".but2" ,it did not hide by "aa".
|
|||
12 Sep 2009, 12:50 |
|
revolution 12 Sep 2009, 12:54
fasm only reports one error at a time. The first error encountered was the one it showed.
|
|||
12 Sep 2009, 12:54 |
|
6a00 12 Sep 2009, 13:03
Sorry sorry i did not thought good and asked that.
|
|||
12 Sep 2009, 13:03 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.