S
S
sddvxd2019-05-19 21:48:19
assembler
sddvxd, 2019-05-19 21:48:19

How to escape a character in a string?

Good afternoon!
There was a problem compiling the following code:

global [email protected]

section .data
  dll EQU 'a\''

section .text
[email protected]:

The compiler did not like the line with the declaration of the constant:

lib.asm:4: warning: unterminated string [-w+other]
lib.asm:4: error: comma, colon, decorator or end of line expected after operand
C:\Users\sddvxd\Desktop\lang\asm\pro >

Please tell me how to escape the "'" character. Please do not suggest using double quotes instead of single quotes, because you need to frame large text, where, again, there are a lot of double quotes

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sddvxd, 2019-05-19
@sddvxd

I was already told here, I forgot that you can do this:
dll EQU `a\'`

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question