A
A
Aren Yelchinyan2022-03-23 12:20:41
assembler
Aren Yelchinyan, 2022-03-23 12:20:41

Creating labels with FASM macro?

Hello! I have a small problem. I don't know much about FASM. There was a need to write a macro to automatically create labels. Here's how I see it:

macro create_label ИМЯ{
public my_label_ИМЯ
my_label_ИМЯ:
    ; Выполнение какого-то кода
    jmp exit_label
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aren Yelchinyan, 2022-03-23
@zelenie_pelimeni

Tried like this:

macro create_label ИМЯ{
public my_label_\ИМЯ
my_label_\ИМЯ:
    ; Выполнение какого-то кода
    jmp exit_label
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question