flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > [fasmg] stringify string |
Author |
|
Tomasz Grysztar 14 Jun 2021, 19:20
This is a bit of information that is lost during fasm's tokenization, there is no way to get it back. The string token would probably need to be extended with additional byte to fit such information into.
|
|||
14 Jun 2021, 19:20 |
|
MaoKo 14 Jun 2021, 19:50
Ok. I've re-read the man (lexical part) and I didn't known that double and single quote were apart from the +-/*=<>()[]{} group. So technically you can define variable with quote inside it, like:
Code: a"b? = 3 Pretty funny. |
|||
14 Jun 2021, 19:50 |
|
bitRAKE 15 Jun 2021, 07:37
It can be really helpful with numbers too:
Code: bitfields: .mask = 00'111'000b .one = 00'001'000b .two = 00'010'000b .three = 00'011'000b _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
15 Jun 2021, 07:37 |
|
MaoKo 15 Jun 2021, 15:18
Yes. I forget that too. Underscore also work but single quote is far better. You can mix both also.
|
|||
15 Jun 2021, 15:18 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.