X-Authentication-Warning: kendall.sfbr.org: jeffw set sender to jeffw AT darwin DOT sfbr DOT org using -f Date: Tue, 18 Jun 2002 07:52:04 -0500 From: JT Williams To: djgpp AT delorie DOT com Subject: Re: djasm: size of immediate unknown error message Message-ID: <20020618125204.GA28114@kendall.sfbr.org> Mail-Followup-To: djgpp AT delorie DOT com References: <1024181369 DOT 484336 AT queeg DOT ludd DOT luth DOT se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1024181369.484336@queeg.ludd.luth.se> User-Agent: Mutt/1.3.27i Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk -: 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. That's right. The assembler relies on the suffix to know what size the immediate operand should be (unless the size can be inferred from other arguments). -: Now, this error message is pretty hard to understand, until you are -: aware of djasm particularities. Yes. djasm is not for the innocent. -: 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''? I agree the error message is cryptic; I will look into some improvements.