delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1996/09/19/07:28:59

Date: Thu, 19 Sep 1996 13:14:05 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "John M. Aldrich" <fighteer AT cs DOT com>
Cc: djgpp-workers AT delorie DOT com
Subject: Re: "djverify" - DJGPP Installation Diagnostic Program
In-Reply-To: <3240C0FD.759F@cs.com>
Message-Id: <Pine.SUN.3.91.960919131112.4286A-100000@is>
Mime-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019