🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.asm
Article #970

Re: Kilka pytań

#970
From: Bogdan (bogdro)
Date: Sun, 31 Dec 2006 10:14
43 lines
2691 bytes
johnny napisał(a):
> Dzięki za odpowiedź. Jednak nadal coś jest nie tak.
> Mam kod:
> 
> ..386
> ..model tiny
> ..code
> org 100h
> main proc
> 
> 	mov	eax,4c00h
> 	int	21h
> 
> main endp
> end main
> 
> Wywołuję ml example.asm i otrzymuję:
> 
> (...)
>  Assembling: example.asm
> Microsoft (R) Incremental Linker Version 5.12.8078
> Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
> 
> /z2
> "example.obj" /t
> "example.com"
> NUL
> LINK : warning LNK4044: unrecognized option "z2"; ignored
> LINK : warning LNK4044: unrecognized option "t"; ignored
> example.obj : warning LNK4033: converting object format from OMF to COFF
> example.com : fatal error LNK1136: invalid or corrupt file

 Prawdopodobnie ML.EXE źle kompiluje program, może model pamieci go
myli, bo widać, że kompiluje na COM. Spróbuj ".model flat" lub pogrzeb
w opcjach (choć COFF powinien być domyślnym formatem).

 P.S. Jeśli program się wysypie, to znaczy, że działa :)

-- 
Pozdrawiam, Bogdan                                  (Linux i FreeDOS)
Kurs assemblera x86 (DOS i Linuks): http://rudy.mif.pg.gda.pl/~bogdro
Grupy dyskusyjne o asm:  pl.comp.lang.asm alt.pl.asm alt.pl.asm.win32
Rozmawiaj bezpiecznie: www.JabberPL.org Surfuj anonimowo: tor.eff.org
Technical Details
Message-ID: <en82ie$1hp$1@atlantis.news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!newsfeed.pionier.net.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!nemesis.news.tpi.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
References: <en41ut$p9v$1@atlantis.news.tpi.pl> <1167430701.362900.283060@v33g2000cwv.googlegroups.com> <en5bg7$fcn$1@nemesis.news.tpi.pl> <1167479334.457754.245210@s34g2000cwa.googlegroups.com> <en5t03$omq$1@atlantis.news.tpi.pl> <1167489889.884671.181790@48g2000cwx.googlegroups.com> <en65ps$p9g$1@atlantis.news.tpi.pl> <1167502102.717930.174330@i12g2000cwa.googlegroups.com> <en6ceb$m6k$1@nemesis.news.tpi.pl> <en7v2r$joo$1@atlantis.news.tpi.pl> <en7vpl$lkq$1@atlantis.news.tpi.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!newsfeed.pionier.net.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!nemesis.news.tpi.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: "Bogdan (bogdro)" <bogdan@bogdan.pl>
Newsgroups: pl.comp.lang.asm
Subject: Re: Kilka pytań
Date: Sun, 31 Dec 2006 11:14:04 +0100
Organization: tp.internet - http://www.tpi.pl/
Lines: 43
Message-ID: <en82ie$1hp$1@atlantis.news.tpi.pl>
References: <en41ut$p9v$1@atlantis.news.tpi.pl>   <1167430701.362900.283060@v33g2000cwv.googlegroups.com>   <en5bg7$fcn$1@nemesis.news.tpi.pl>   <1167479334.457754.245210@s34g2000cwa.googlegroups.com>   <en5t03$omq$1@atlantis.news.tpi.pl>   <1167489889.884671.181790@48g2000cwx.googlegroups.com>   <en65ps$p9g$1@atlantis.news.tpi.pl> <1167502102.717930.174330@i12g2000cwa.googlegroups.com> <en6ceb$m6k$1@nemesis.news.tpi.pl> <en7v2r$joo$1@atlantis.news.tpi.pl> <en7vpl$lkq$1@atlantis.news.tpi.pl>
NNTP-Posting-Host: acta211.neoplus.adsl.tpnet.pl
Mime-Version: 1.0
X-Trace: atlantis.news.tpi.pl 1167560079 1593 83.11.54.211 (31 Dec 2006 10:14:39 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Sun, 31 Dec 2006 10:14:39 +0000 (UTC)
User-Agent: Thunderbird 1.5.0.8 (X11/20061025)
In-Reply-To: <en7vpl$lkq$1@atlantis.news.tpi.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit