Modify ↓
Ticket #159 (assigned enhancement)
Full arithmetic on labels when using non-relocatable formats.
| Reported by: | anonymous | Owned by: | peter@… |
|---|---|---|---|
| Priority: | P1 | Milestone: | |
| Component: | Object Format: bin | Version: | 0.7.1 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Code:
org 1
_label:
mov ax, (_label << 10)
Actual result:
% yasm -f bin test.asm
test.asm:3: error: immediate expression too complex
% nasm -f bin test.asm
test.asm:3: error: shift operator may only be applied to scalar values
Expected result:
% sed 's/<</shl/' -i test.asm && fasm test.asm
1 passes, 3 bytes.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
