flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > FASMG: question about lengthof operator |
Author |
|
Tomasz Grysztar 27 Mar 2024, 15:26
The LENGHTOF is only defined for string values, and when you use it with another kind of value, it is implicitly converted to string first, so "lengthof 0xFF" is the same as "lengthof string 0xFF".
If you test this: Code: db string 0xFF Code: db string -1 ; 1 byte db string 0xFF ; 2 bytes db string -8000h ; 2 bytes db string 8000h ; 3 bytes |
|||
27 Mar 2024, 15:26 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.