Mail Archives: djgpp/1997/09/02/23:45:25
On 27 Aug 1997, M. Schulter wrote:
> This message is just to express appreciation for an exciting new
> introduction by Jim Schwarz to 80386 architecture and assembly
> language programming with DJGPP GAS, the GNU assembler (as.exe):
>
> http://www.delorie.com/djgpp/doc/ug/asm/about-386.html
[SNIP]
> The first is the famous guide by Brennan "Bas" Underwood:
> http://www.rt66.com/~brennan/djgpp/djgpp_asm.html
> The other is one of a series of DJGPP tutorials by avly AT castle DOT net:
> http://www.castle.net/~avly/djasm.html
Let me join the original poster in thanking the authors of the three
tutorials metioned. Without detracting credit in any way from these
excellent tutorials, may I add that DJGPP lacks a tutorial on
stand-alone assembly programs. Now that we have three tutorials all of
which deal almost exclusively with inline assembly, would an experienced
gas programmer consider posting a "template" for a standalone assembly
programme.
What I would be keen learning would be things like:
1) How does one reserve space in a (stand-alone) assembly program
2) Does one have to declare (reserve) space for a stack?
3) What declarations come first, which later?
and so on. I tried to learn these things by writing simple programs in c,
and then looking at the .s file generated by gcc, but the patterns there
are difficult to generalise. Once I have a template for an assembly
language program (for gas), I could always look at the gas info and fill
in the details. On going through (g)as.inf, it was difficult for me to
spot even one complete runnable assembly program, only fragments of
illustrative gas code. Of course, I am aware that (g)as.inf is not a
tutorial and as such is not expected to be a document for learning
"assembly"
- Raw text -