Ticket #142 (new defect)

Opened 3 months ago

Last modified 3 months ago

xlat opcode not emitted, instruction dropped silently (0.7.0, 0.7.1)

Reported by: anonymous Assigned to:
Priority: P2 Milestone:
Component: Architecture: x86 Version: other
Severity: major Keywords:
Cc:

Description

The following command produces a zero length file, while the output should contain the 0xD7 opcode:

echo xlat > test.asm ; yasm -f bin -otest.com test.asm

No errors or warnings are reported.

Attachments

Change History

06/07/08 11:51:15 changed by peter

xlat is not an opcode; xlatb is. NASM syntax allows labels without a following colon, so a line containing simply "xlat" simply declares a label xlat. There is an optional warning you can turn on to warn on this case (-Worphan-labels).

$ ./yasm -f bin -Worphan-labels test.asm
test.asm:1: warning: label alone on a line without a colon might be in error

Add/Change #142 (xlat opcode not emitted, instruction dropped silently (0.7.0, 0.7.1))