1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
;--- register AH-DH as arguments for byte params, 32-bit code .386 .model flat .code myproc proc stdcall x:byte ret myproc endp invoke myproc,bh invoke myproc,ch invoke myproc,dh invoke myproc,ah end