🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: problem pamieci

#812
From: Bogdan (bogdro)
Date: Sun, 12 Nov 2006 16:49
27 lines
1864 bytes
PioM napisał(a):
> Użytkownik "Bogdan (bogdro)" <bogdan@bogdan.pl> napisał w wiadomości 
>> Po drugie, może DS nieustawiony przed pierwszym MOV?
> 
> 32 bitowym adresowaniu moze byc bezwzglednie.

 32-bitowe adresowanie może być też w programie 16-bitowym. A
wnioskując po twoim skrawku kodu, piszesz program 16-bitowy. Wtedy
każdy adres zależy od reejstrów segmentowych, stąd moja uwaga.

 Wykonaj (w programie 16-bitowym):
	mov	ebx, 1234
	xor	ax, ax
	mov	ds, ax
	mov	dword [ebx], "ABCD"
	mov	ax, 1000
	mov	ds, ax
	cmp	dword [ebx], "ABCD"
	je	przypadek_1_na_zyliard
	jne	w_programie_16b_DS_robi_wielka_roznice


-- 
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: <ej7jh9$hau$1@nemesis.news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!newsfeed.tpinternet.pl!nemesis.news.tpi.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
References: <eisoem$a84$1@atlantis.news.tpi.pl> <eit2d7$n48$1@nemesis.news.tpi.pl> <ej7868$pve$1@nemesis.news.tpi.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.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: problem pamieci
Date: Sun, 12 Nov 2006 17:49:49 +0100
Organization: tp.internet - http://www.tpi.pl/
Lines: 27
Message-ID: <ej7jh9$hau$1@nemesis.news.tpi.pl>
References: <eisoem$a84$1@atlantis.news.tpi.pl> <eit2d7$n48$1@nemesis.news.tpi.pl> <ej7868$pve$1@nemesis.news.tpi.pl>
NNTP-Posting-Host: actv128.neoplus.adsl.tpnet.pl
Mime-Version: 1.0
X-Trace: nemesis.news.tpi.pl 1163350378 17758 83.11.75.128 (12 Nov 2006 16:52:58 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Sun, 12 Nov 2006 16:52:58 +0000 (UTC)
User-Agent: Thunderbird 1.5.0.8 (X11/20061025)
In-Reply-To: <ej7868$pve$1@nemesis.news.tpi.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit