www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/06/06/02:54:05

Date: Tue, 6 Jun 1995 08:01:17 +0300
From: eliz AT is DOT elta DOT co DOT il (Eli Zaretskii)
To: teney931 AT cs DOT uidaho DOT edu
Subject: Re: Gnu Assembler Question
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

> |>    A couple of them, actually:
> |> 
> |> 1)  How do I do an SHL EAX, 16 in GAS?  SHL %EAX, 16 give an undefined 
> |> opcode error, as does SHL 16, %EAX.  I can do it by 16 SHL %EAX's, but 
> |> the chip can do multi-bit shifts at once, so that is wasteful.
>
>  Try: shll $16, %eax
>
> |> 
> |> 2)  I don't suppose that there is a converter for Intel format to GAS 
> |> format, is there?

FYI: this is all explained in the DJGPP FAQ list, available as faq101.zip
from the same place you got DJGPP.  Read Chapter 17 there: question 17.1
describes differences between MASM and GAS syntax and points you to the
appropriate GAS Info node in the docs; question 17.2 discusses the
(un)availability of an automated conversion tool and gives some advise on
how to do this.  If you have a large body of code written in MASM which
you want to convert to DJGPP, you should probably read the other questions
in that chapter, they might save you some grief along the way.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019