TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: All
from: Paul Edwards
date: 1995-01-01 20:26:14
subject: doscall.lib problem

; If this code is compiled with BCOS2 1.5 as follows:
; tasm prob
; tlink prob,,,e:\bcos2\lib\os2.lib
; it works

; If compiled as
; tasm prob
; tlink prob,,,e:\os2\doscalls.lib
; it gets a trap 5.

; If you know the reason for this, please contact Paul Edwards,
; Fidonet 3:711/934.  I am using OS/2 2.1

.386p

.model os2 flat

.stack 4000h

_text segment 'CODE'

extrn DosExit:near

top:

public foo
foo proc
.startup
push 0
push 1
call DosExit
foo endp

_text ends

end top
@EOT:

--- Mksmsg
* Origin: none (3:711/934.9)

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.