🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Kilka pytań

#971
From: Bernard
Date: Sun, 31 Dec 2006 22:51
33 lines
2013 bytes
Bogdan (bogdro) wrote:
> johnny napisał(a):
>> Dzięki za odpowiedź. Jednak nadal coś jest nie tak.
>> Mam kod:
>>
>> ..386
>> ..model tiny
>> ..code

I już asembler zacznie generować postać OBJ, z którą nie poradzi sonie 
żaden linker. Jeśli model ma być 16-bitowy (czyli np. tiny), to 
dyrektywa .386 MUSI być po modelu.

>> org 100h
>> main proc

A jakie to niby proc? daruj sobie. Powinno być po prostu

start:
>>
>> 	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

No właśnie. Przemieść to .386.
Technical Details
Message-ID: <45982dc7$0$17952$f69f905@mamut2.aster.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!newsfeed.pionier.net.pl!news.astercity.net!news.aster.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> <en82ie$1hp$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.astercity.net!news.aster.pl!not-for-mail
Date: Sun, 31 Dec 2006 23:51:10 +0100
From: Bernard <bernard@earth.net>
User-Agent: Thunderbird 1.5.0.9 (Windows/20061207)
MIME-Version: 1.0
Newsgroups: pl.comp.lang.asm
Subject: Re: Kilka pytań
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> <en82ie$1hp$1@atlantis.news.tpi.pl>
In-Reply-To: <en82ie$1hp$1@atlantis.news.tpi.pl>
X-Antivirus: avast! (VPS 0666-1, 2006-12-31), Outbound message
X-Antivirus-Status: Clean
Lines: 33
Message-ID: <45982dc7$0$17952$f69f905@mamut2.aster.pl>
NNTP-Posting-Date: 31 Dec 2006 21:38:15 GMT
NNTP-Posting-Host: 82.210.165.187
X-Trace: 1167601095 mamut2.aster.pl 17952 82.210.165.187:3205
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit