Thread View: pl.comp.lang.asm
1 messages
1 total messages
Started by Matuzalem
Mon, 16 Oct 2006 06:49
NASM:
Author: Matuzalem
Date: Mon, 16 Oct 2006 06:49
Date: Mon, 16 Oct 2006 06:49
30 lines
1961 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads