News for hackers. Stuff that matters.
Re:KolibriOS – operating system written entirely in assembly... by pjmlp on Wednesday April 15, 2020 @04:04AM (#22875563)
Yes, here is the manual for MASM.

https://docs.microsoft.com/en-us/cpp/assembler/masm/directiv...

Basically already back in the Amiga/MS-DOS days, you could define:

- procedures and functions like higher level languages

- structures

- make use of looping constructs (repeat/while) and conditional logic (if/else)

- create hygienic labels for variables and jump targets

TASM and the FOSS clones, yasm and fasm do support similar macro capabilities.

On the Amiga side, Devpac was the goto Macro Assembler,

https://www.amigagamedev.com/Downloads/DevPac_v3.00.Manual.p...

Only the UNIX Assemblers have been traditionally quite poor in macro capabilities, as they have been mostly used as yet another stage for generating code from C compilers.

A good example how to take advantage of such macros is to implement a poor man's compiler, or the first stage of a bootstraped compiler.

Generate bytecodes that can be easily mapped into macros, and then just by having your macro library for the target platform you get the compiler very quickly up and running.

Re:KolibriOS – operating system written entirely in assembly... by unwind on Wednesday April 15, 2020 @05:07AM (#22875831)
In the Amiga demo scene, I would dare say that ASM-One [1] was the default assembler.

[1] https://en.m.wikipedia.org/wiki/ASM-One_Macro_Assembler

Re:KolibriOS – operating system written entirely in assembly... by snvzz on Wednesday April 15, 2020 @09:23AM (#22877378)
AsmTwo[0] is a decent currently maintained fork of that.

[0]: http://coppershade.org/articles/Code/Tools/AsmTwo/

Re:KolibriOS – operating system written entirely in assembly... by pjmlp on Wednesday April 15, 2020 @05:39AM (#22875967)
I was into portuguese demoscene Amiga/PC and never heard of it, then again it was back in the days when we exchanged floppies via the post.