#179 ✓resolved
Peter Johnson

Far jumps broken in GAS parser

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

Originally posted on Trac by anonymous
Original Trac Ticket

  Description

I'm trying to compile some AT&T syntax assembler with yasm but the far jumps (ljmp, lcall) seem to be broken.

joe ~ $ yasm --version
yasm 0.8.0.2194
Compiled on Sep 20 2009.
Copyright (c) 2001-2008 Peter Johnson and other Yasm developers.
Run yasm --license for licensing overview and summary.
joe ~ $ cat farjump.asm 
ljmp $0x0000, $boot
boot:
joe ~ $ yasm -f bin -p gas farjump.asm 
farjump.asm:1: error: instruction not recognized: `ljmp'

Trac Attachments

h3. Trac Comments
comment:1

              Changed 19 months ago by peter@tortall.net


      comment:1

                  Changed 19 months 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

comment:2

              Changed 19 months ago by peter


(In [2238]) Fix a bunch of GAS x86 instruction issues.

Fix #193: ljmp/lcall not implemented; add 2-operand far jump to jmp/call.
Add loop{,z,e} instruction suffixes
Fix a bunch of jmp/call minor issues.
Vastly improve suffix handling in general to make more consistent and make
a greater variety of no-suffix instructions work in a way that matches GAS.

      comment:2

                  Changed 19 months ago by peter

      Status
        changed from assigned to closed
    
      Resolution
        set to fixed

(In [2238]) Fix a bunch of GAS x86 instruction issues.

Fix #193: ljmp/lcall not implemented; add 2-operand far jump to jmp/call.
Add loop{,z,e} instruction suffixes
Fix a bunch of jmp/call minor issues.
Vastly improve suffix handling in general to make more consistent and make
a greater variety of no-suffix instructions work in a way that matches GAS.

      Status
        changed from assigned to closed
    
      Resolution
        set to fixed

No comments found

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