Mail Archives: djgpp/1997/12/21/21:01:41
Thomas Harte <T DOT Harte AT bigfoot DOT com> wrote:
: Hi,
: I know Z80 assembler, and I have some polygon filling routines
: which I would like to convert the inner loops of to ASM. I can do this
: very easily to Z80 assembler, but not to AT&T. So what I am looking for
: is a quick reference to the AT&T command set . . . anyone know one?
: -Thomas
As someone learning some AT&T syntax as my first assembler language, I
would suggest seeking out two kinds of resources:
(1) Documentation specific to AT&T syntax, including the DJGPP FAQ,
Section 17, and the tutorial by Brennan there recommended; the
documentation on the GNU assembler (GAS), as.exe:
info as machine i386
as well as the DJGPP Users' Guide now in
progress at DJ Delorie's site, and a tutorial in progress by Jeff Weeks;
and
(2) General references about Intel i386 assembler, including an Intel
Programmer's manual for the i386 available on the Web and various lists of
the i386 and floating-point commands.
One advantage as well as complication of learning assembler with GAS is
that you start out with a 32-bit flat memory model, really a benefit for
lots of things but also a complication to the extent that some novice
programs relying upon real mode DOS won't work.
If you search out
http://www.dejanews.com
for posts in this newsgroup regarding "hello.s" and "GAS" maybe about two
months ago, you'll see some examples of standalone GAS programs, including
a real gem by Charles W. Sandmann, also the incomparable author of
CWSDPMI.
For examples of inline assembler, the Brennan tutorial could be very
helpful, as is noted in the DJGPP FAQ; it got me started even though I had
never written assembler before.
Most respectfully,
Margo Schulter
mschulter AT value DOT net
- Raw text -