🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

NASM:

#755
From: Matuzalem
Date: Mon, 16 Oct 2006 06:49
30 lines
1961 bytes
Witam

; ----------------------

msg db "Welcome", 0

; (...)

mov dx, msg
mov al, [byte dx] ; error: invalid effective address

; ----------------------


NASM Manual:
"However, you can force NASM to generate an effective address in a
particular form by the use of the keywords BYTE, WORD, DWORD and
NOSPLIT. If you need [eax+3] to be assembled using a double-word offset
field instead of the one byte NASM will normally generate, you can code
[dword eax+3]. Similarly, you can force NASM to use a byte offset for a
small value which it hasn't seen on the first pass (see section 3.8 for
an example of such a code fragment) by using [byte eax+offset]. As
special cases, [byte eax] will code [eax+0] with a byte offset of zero,
and [dword eax] will code it with a double-word offset of zero. The
normal form, [eax], will be coded with no offset field."

Czemu mam ten błąd?

Pozdrawiam
Technical Details
Message-ID: <1160981382.705598.268020@m7g2000cwm.googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!newsfeed.pionier.net.pl!newsfeed.gamma.ru!Gamma.RU!postnews.google.com!m7g2000cwm.googlegroups.com!not-for-mail

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!newsfeed.gamma.ru!Gamma.RU!postnews.google.com!m7g2000cwm.googlegroups.com!not-for-mail
From: "Matuzalem" <codemaster_@op.pl>
Newsgroups: pl.comp.lang.asm
Subject: NASM:
Date: 15 Oct 2006 23:49:42 -0700
Organization: http://groups.google.com
Lines: 31
Message-ID: <1160981382.705598.268020@m7g2000cwm.googlegroups.com>
NNTP-Posting-Host: 212.244.115.33
Mime-Version: 1.0
X-Trace: posting.google.com 1160981387 11725 127.0.0.1 (16 Oct 2006 06:49:47 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 16 Oct 2006 06:49:47 +0000 (UTC)
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7,gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: m7g2000cwm.googlegroups.com; posting-host=212.244.115.33;   posting-account=HFFdEQ0AAACI08bdAnMScVqwVEj2ucOg
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit