Mail Archives: djgpp/2002/06/15/19:45:31
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 -