The use case beyond educational purpose is still unclear to me though. Especially with macros.
The use case beyond educational purpose is still unclear to me though. Especially with macros.
I never used FASM, being an old MS-DOS grey beard, but tasm/masm macros were quite powerful, specially after MASM 6.0.
So I never got the idea they were like cpp macros.
Regarding the educational purpose with macros, are you aware that TI has some CPUs with an Assembler that looks like C--, or that AS/400 Assembly supports objects?
So take my words with grain of salt.
>So I never got the idea they were like cpp macros. >TI ...
My experience lays completely in intel 80* range. I'm provincial-ussr born, so even a regular PC-compatible was almost unobtainable until circa '95.
I also knew a few people who nominally programmedi in Turbo Pascal, but whose code was 70% inline assembly...
And weirdly enough, a few marooned Acorn Archimedes/RiscPC programmers waxing poetic about their ARMs.
(And if there ever was some niche of a "MenuetOS"-like OS, it would probably be for the Raspberry Pi)
Anything that actually required extracting performance out of the system was straight Assembly, which I why it is ironic that new generations think that C compilers were generating fast code since day one.
I also knew a few people that did it like that, to save money on an Assembler.
On the other hand, definition of complex data structures is much easier with powerful macro engine.