flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Label's name assembled with values of numerical constants. I |
Author |
|
LocoDelAssembly 17 Nov 2009, 16:54
Can those numerical constants be represented as "a equ 2" and "b equ 55"?
Because in that case: Code: a equ 2 b equ 55 match a b, a b { label_#a#_#b: } jmp label_2_55 ; Just to confirm the label was defined as expected |
|||
17 Nov 2009, 16:54 |
|
Benjamin 18 Nov 2009, 08:02
LocoDelAssembly wrote: Can those numerical constants be represented as "a equ 2" and "b equ 55"? ... Thank LocoDelAssembly! But need than "a" and "b" was macros arguments, as: Code: a equ 2 b equ 55 macro lab x,y{ match i j, x y \{label_#i#_#j:\} } lab a,b ;jmp label_2_55 ;<-error: created "label_i_j" _________________ Benjamin |
|||
18 Nov 2009, 08:02 |
|
SFeLi 18 Nov 2009, 08:09
Benjamin, you forgot to escape all #’s (\#).
|
|||
18 Nov 2009, 08:09 |
|
Benjamin 18 Nov 2009, 08:19
SFeLi wrote: Benjamin, you forgot to escape all #’s (\#). _________________ Benjamin |
|||
18 Nov 2009, 08:19 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.