flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > labels and macro |
Author |
|
revolution 14 May 2020, 22:55
Roman wrote:
Code: 1 passes, 6 bytes. |
|||
14 May 2020, 22:55 |
|
Roman 15 May 2020, 06:46
Try
Code: macro x { local l1 jmp l1 l1: } .22: mov al,2 x .33: cmp al,3 jbe .22 Get me error: undefined symbol 'l1?g.22' |
|||
15 May 2020, 06:46 |
|
revolution 15 May 2020, 07:52
This is normal. You are defining a new base label with the macro x.
Try this: Code: macro x { local ..l1 jmp ..l1 ..l1: } .22: mov al,2 x .33: cmp al,3 jbe .22 |
|||
15 May 2020, 07:52 |
|
Roman 15 May 2020, 07:57
Hm.
Interesting. Thanks. I try this and work ! Code: .23: ..23: ...23: jnz .23 jnz ..23 jnz ...23 Last edited by Roman on 15 May 2020, 11:03; edited 1 time in total |
|||
15 May 2020, 07:57 |
|
revolution 15 May 2020, 08:07
Note that the macro is not the cause here.
Code: .22: l1: jmp .22 ;error Code: .22: ..l1: jmp .22 ;okay |
|||
15 May 2020, 08:07 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.