Article View: pl.comp.lang.asm
Article #756NASM: invalid effective address
From: Matuzalem
Date: Mon, 16 Oct 2006 06:52
Date: Mon, 16 Oct 2006 06:52
28 lines
1965 bytes
1965 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:
<1160981521.580407.72530@b28g2000cwb.googlegroups.com>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.nask.pl!news.nask.org.pl!news.germany.com!postnews.google.com!b28g2000cwb.googlegroups.com!not-for-mailShow 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!news.germany.com!postnews.google.com!b28g2000cwb.googlegroups.com!not-for-mail From: "Matuzalem" <codemaster_@op.pl> Newsgroups: pl.comp.lang.asm Subject: NASM: invalid effective address Date: 15 Oct 2006 23:52:01 -0700 Organization: http://groups.google.com Lines: 29 Message-ID: <1160981521.580407.72530@b28g2000cwb.googlegroups.com> NNTP-Posting-Host: 212.244.115.33 Mime-Version: 1.0 X-Trace: posting.google.com 1160981525 12004 127.0.0.1 (16 Oct 2006 06:52:05 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 16 Oct 2006 06:52:05 +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: b28g2000cwb.googlegroups.com; posting-host=212.244.115.33; posting-account=HFFdEQ0AAACI08bdAnMScVqwVEj2ucOg Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit