Re:Web server for Linux written in amd64 assembly
by oso2k on Monday February 03, 2014 @11:08AM
(#7171358)
TASM from Borland had bunch of macros/shortcut keywords for the patterns you describe. There's dozens of library files to do similar things in MASM as well. mammon_ had written a bunch of macros [1] that do same thing for NASM. See how he exploits NASM's preprocessor for this in his "Extending NASM" article in the Assembly Language Journal, Feb/Mar 1998, Issue 3. He also demonstrates how do all the control structures in NASM's preprocessor (for, if, switch/case, while, do/while, etc.).
[1] http://mammon.github.io/Text/nasm_apj.txt