A
A
armadillo-cld2020-09-06 14:06:17
assembler
armadillo-cld, 2020-09-06 14:06:17

FASM. How to declare a procedure with an argument - a string?

How to declare a procedure with a string argument?
I do so

proc getel text:DB
endp

but Error: extra characters on line
I'm writing on Windows, x32, FASM IDE

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2020-09-06
@jcmvbkbc

How to declare a procedure with a string argument?

This is assembler, what is the "string argument"? Everything is registers or words in memory.
proc getel text
endp

text is a pointer to your string.
fasm has a bunch of examples where you can see how things are done there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question