flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > [fasmg] making file labels have a sizeof bytes included ... |
Author |
|
Tomasz Grysztar 23 Apr 2024, 07:02
bitRAKE wrote: For an unknown reason labels using the FILE data type resolve to a SIZEOF 1. I propose another variant: Code: calminstruction(NAMED) file? name* local tmp compute tmp, $ arrange name, =file name assemble name compute tmp, $ - tmp arrange name, =label NAMED:tmp =at =$ - tmp assemble name end calminstruction |
|||
23 Apr 2024, 07:02 |
|
bitRAKE 23 Apr 2024, 13:57
Thank you, I did feel my use was inefficient, but my first attempt didn't work.
Tomasz Grysztar wrote: The reason is the usual one - backwards compatibility with fasm 1. fasm1.inc ++ Code: calminstruction(NAMED) file? name* local tmp compute tmp, $ arrange name, =file name assemble name arrange name, =label NAMED:1 =at tmp assemble name end calminstruction GPT-4 wrote: Your reflection on fasmg—Flat Assembler G—touches on an intriguing aspect of software development, particularly when evolving a tool like an assembler. The backward leaning perspective you mention seems to refer to the compatibility and continuation of features from the original Flat Assembler (FASM) to fasmg. This aspect is crucial because it ensures that existing users and their projects remain supported and operational, offering a form of continuity and stability. _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
23 Apr 2024, 13:57 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.