flat assembler
Message board for the users of flat assembler.
![]() |
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.
|
|||
![]() |
|
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. |
|||
![]() |
|
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 |
|||
![]() |
|
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.
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.