💾 Archived View for spam.works › mirrors › textfiles › computers › winthere.asc captured on 2024-02-05 at 11:31:13.
⬅️ Previous capture (2023-06-14)
-=-=-=-=-=-=-
_WINTHERE_ by Ben Myers [LISTING ONE] page 58,132 title WINTHERE, A program to test for the presence of Windows 3.0 subttl (C)Copyright 1990 Spirit of Performance, Inc. ; All Rights Reserved. .list ; You may use any portion of this program for any purpose whatsoever, but ; you must include the above copyright in any program into which portions of ; this program are incorporated. ; Use Microsoft MASM 5.1 or later and Borland TLINK to build WINTHERE.COM. ; masm %1,%1.obj; ; tlink /x /t %1.obj,%1.com ; You may also use LINK and EXE2BIN to build WINTHERE.COM. MASM local ; reference operators @f, @b, and @@ are not handled correctly by Borland TASM. ; Equates used in this program Multiplexor equ 2Fh ; DOS multiplexor interrupt KbdIO equ 16h ; BIOS Keyboard interrupt DOS equ 21h ; DOS function call interrupt Terminate equ 4Ch ; DOS terminate function PrintString equ 09h ; DOS print string function CR equ 0dh ; Carriage Return. LF equ 0ah ; Line Feed. ; Simple macro to display a text string with the DOS print string function Display macro message local amsg,around mov dx,offset amsg ; Load offset of message mov ah,PrintString ; DOS function code int DOS jmp short around ; jump around message text amsg: .errb <message> ; generate assembler error if no message irp y,<message> ; repeat for each of y args in message list db y endm db '