Category : BASIC Source Code
Archive   : QBWIZ20.ZIP
Filename : ERRLEVEL.ASM

 
Output of file : ERRLEVEL.ASM contained in archive : QBWIZ20.ZIP
comment #

+----------------------------------------------------------------------+
| |
| QBWiz Copyright (c) 1990-1992 Thomas G. Hanlin III |
| |
| QuickBasic Access Library |
| |
+----------------------------------------------------------------------+

#

public ERRLEVEL


extrn B$terminate: byte



.model medium

.code



ERRLEVEL proc ; set error level
mov bx,sp
mov ax,4[bx]
mov bx,offset B$terminate
mov cx,seg B$terminate
mov es,cx
mov byte ptr es:-3[bx],0B8h ; store opcode for "MOV AX,immed"
mov es:-2[bx],ax ; store immediate value
ret 2
ERRLEVEL endp ; set error level



end


  3 Responses to “Category : BASIC Source Code
Archive   : QBWIZ20.ZIP
Filename : ERRLEVEL.ASM

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/