TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Peter Fitzsimmons
from: Paul Edwards
date: 1996-01-17 09:12:34
subject: asm + link problems

PE> If you do the following:

PE> tasm -oi -ml one.asm
PE> tasm -oi -ml two.asm
PE> link386 /w /pm:vio one+two,,,os2386.lib,nul.def

PE> and then run one.exe, it gets a trap 5
PE> If you replace the link386 with
PE> tlink one+two,,,os2386.lib

PF> What happens if you replace tasm with masm?

If I change to masm 5.1, and change the ".model flat" to
".model small", then I get the same problem, a trap-5.

PF> tasm and link386 are not meant for each other (when was the last time you 
PF> saw Borland do anything "ms" standard?),  so don't blame
link386 if the 
PF> same asm file assemble correctly with masm.

The "-oi" option to tasm is meant to produce "intel standard"
object code.

Also, if I change tasm to wasm, I ALSO get the same problem (using
.model flat).  

Thanks for your help.  Paul.
@EOT:

---
* Origin: X (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™.