#159 (Full arithmetic on labels when using non-relocatable formats.) – The Yasm Modular Assembler Project
Modify

Ticket #159 (assigned enhancement)

Opened 21 months ago

Last modified 21 months ago

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

comment:1 Changed 21 months ago by peter@…

  • Owner set to peter@…
  • Status changed from new to assigned
View

Add a comment

Modify Ticket

Action
as assigned
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.