delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/06/15/19:45:31

From: Martin Str|mberg <ams AT speedy DOT ludd DOT luth DOT se>
Subject: djasm: size of immediate unknown error message
Newsgroups: comp.os.msdos.djgpp
Summary:
User-Agent: tin/1.4.4-20000803 ("Vet for the Insane") (UNIX) (NetBSD/1.5_BETA (alpha))
Message-ID: <1024181369.484336@queeg.ludd.luth.se>
Cache-Post-Path: queeg.ludd.luth.se!unknown AT speedy DOT ludd DOT luth DOT se
X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/)
Date: 15 Jun 2002 22:49:29 GMT
Lines: 32
NNTP-Posting-Date: 15 Jun 2002 22:49:29 GMT
NNTP-Posting-Host: queeg.ludd.luth.se
X-Trace: 1024181369 news.luth.se 283 130.240.16.109
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Consider this very simplistic asm program:

        .org 0x100
start:
        mov [var], 0

        ret

var:
        .dw 0

and the assembling:

nietzsche:~/djgpp> lfn.1/djasm djasm.error_message.1.asm djasm.error_message.1.com djasm.error_message.1.map
djasm.error_message.1.asm:3: parse error, expecting `REG8' or `REG16' or `REG32' or `SREG'
djasm.error_message.1.asm:3: Last token was `0' (NUMBER)
djasm.error_message.1.asm: 1 errors

The error is because djasm doesn't know the size of var. If I use
"movb", movw" or movd" instead of "mov" all is fine.

Now, this error message is pretty hard to understand, until you are
aware of djasm particularities. 

How hard would it be to improve it to say ``Size of destination of
immediate value is unknown. Use "movb", "movw" or "movd" to specify
size of value''?


Right,

						MartinS

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019