#150 open
Peter Johnson

Full arithmetic on labels when using non-relocatable formats.

Reported by Peter Johnson | June 25th, 2011 @ 07:51 PM

Originally posted on Trac by anonymous
Original Trac Ticket

  Description

Code:

org 1

_label:

mov ax, (_label

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/

1 passes, 3 bytes.

Trac Attachments

h3. Trac Comments
comment:1

              Changed 3 years ago by peter@tortall.net


      comment:1

                  Changed 3 years ago by peter@tortall.net

      Owner
        set to peter@tortall.net
    
      Status
        changed from new to assigned

      Owner
        set to peter@tortall.net
    
      Status
        changed from new to assigned

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Yasm Modular Assembler Project

Shared Ticket Bins

People watching this ticket

Pages