I thought I would mention a tip for avoiding long, skinny source files, which also saves a bit of typing. Example:

@pop MACRO R1,R2,R3,R4,R5,R6,R7,R8,R9,R10
   IRP Rx,
      IFB 
         EXITM
      ENDIF
      pop Rx
   ENDM
ENDM
...
@pop ebx,edx,ecx,eax,ebp
retn
...
Several pops can go on one line. The macro (known as a "helper macro") can go with a bunch of similar ones in a single include file. The same idea can be used to load registers for a call or (in 16-bit code) for the frequent int 21h calls.
Posted on 2001-06-11 14:09:00 by Larry Hammick