flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
LocoDelAssembly
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 |
|||
![]() |
|
Benjamin
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 |
|||
![]() |
|
SFeLi
Benjamin, you forgot to escape all #’s (\#).
|
|||
![]() |
|
Benjamin
SFeLi wrote: Benjamin, you forgot to escape all #’s (\#). _________________ Benjamin |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.