🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Label

#826
From: Johnny
Date: Thu, 16 Nov 2006 07:45
28 lines
1384 bytes
Chciałem sprawdzić prostą konstrukcję z podręcznika dot. "label".

.model tiny
.stack 100h
.code
org 100h
main proc
	mov	ax,lb

	mov	ax,0c0h
	int	21h
main endp
.data
lb label word
dane dd 12345678h
end main

Jednak widzę w debugerze, że program od razu startuje od linii mov
ax,0c0h. Mam wrażenie - być może mylne - że poprzednia instrukcja
"skleiła się" z inną i jest nieprawidłowo interpretowana. Czy to ma
jakiś związek z wyrównaniem? Jak temu zapobiec?

-- 
Pozdrawiam
Johnny

"Zauważyłem że ci wszyscy, którzy opowiadają się za aborcją, zdążyli się
urodzić". R. Reagan
Technical Details
Message-ID: <ejh4vl$3s4$1@atlantis.news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: Johnny <johnny_bez_spamu_@klub.chip.pl>
Newsgroups: pl.comp.lang.asm
Subject: Label
Date: Thu, 16 Nov 2006 08:45:56 +0100
Organization: tp.internet - http://www.tpi.pl/
Lines: 28
Message-ID: <ejh4vl$3s4$1@atlantis.news.tpi.pl>
NNTP-Posting-Host: nat-132.wasko.pl
Mime-Version: 1.0
X-Trace: atlantis.news.tpi.pl 1163663157 3972 193.178.240.132 (16 Nov 2006 07:45:57 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Thu, 16 Nov 2006 07:45:57 +0000 (UTC)
User-Agent: Thunderbird 1.5.0.8 (Windows/20061025)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit