flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > [fasmg] Trick to detect if an instruction is defined |
Author |
|
bitRAKE 30 Apr 2023, 11:56
This example also makes clear an interesting distinction of fasmg:
From a HLL perspective instructions are often thought about as larger puzzle pieces - containing their parameter syntax. Whereas in fasmg a symbol can pass the instruction test and later fail to match parameter requirements during use. For example, the DQ instruction cannot be used on a line by itself - that is invalid. This does not cause DQ to be interpreted as not an instruction, but an invalid use of a defined instruction. DQ can be used as not an instruction by prefixing it with a question mark - ?DQ will be seen as a label. _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
30 Apr 2023, 11:56 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.