Mail Archives: djgpp-workers/1996/09/19/07:28:59
On Wed, 18 Sep 1996, John M. Aldrich wrote:
> of assembly. :) I have examined the stub.asm code, and while most of
> it is comprehensible, it still doesn't give me any clues on how to
> return system exit codes in assembly.
[snip]
> exit:
> mov bx, crlfdollar
> call printstr
> mov ax, 0x4cff ; error exit
> int 0x21
There's nothing easier. The value you load into AL when you call
Int 21h/AH=4Ch is the exit code (FFh in the above snippet). Just load AL
to a different value for every problem that the stub tests.
- Raw text -