Mail Archives: djgpp/2006/02/16/13:26:09
On Wed, 15 Feb 2006, Brian Inglis wrote:
> On 23 Jan 2006 18:33:21 +0100 in comp.os.msdos.djgpp, "Cristiano"
> <cristiano DOT pi AT NSquipo DOT it> wrote:
>
> >Diego Cueva wrote:
> >> Brennan's Guide to Inline Assembly
> >> by Brennan "Bas" Underwood.
> >
> >I read that guide, but it's not clear to me (and to my English :-) , I need
> >a very basic guide).
> >I found a similar guide:
> >http://www.ibiblio.org/gferg/ldp/GCC-Inline-Assembly-HOWTO.html
> >which seems a bit clearer to me. But do you know any good guide?
>
> gas was originally written for the VAX, so any old VAX assembler
> manual or book would give you the basics on what instructions and
> operands look like.
>
> The official DEC/Digital/Compaq/HP VAX MACRO and Instruction Set
> Reference Manual AA--PS6GD--TE is available online at:
> http://h71000.www7.hp.com/doc/73final/4515/4515pro.html
However, it should be noted that DEC's MACRO assembler for
VAX/VMS is far more capable than Unix-based ones, having
been designed for serious programming rather than mere
parsing of compiler output. Very little Unix source code
is in assembly language ever since the operating system
was rewritten in C [1].
DEC's assembler also noticeably influenced Microsoft's
MASM. Macro keywords like "IRPC", for example, would
hardly appear in MASM by coincidence.
-aw
[1] Even the 7th Edition Unix for the 16-bit PDP/11 that
preceded the VAX had few assembly language source
files (*.s) - you may browse the directory tree at:
http://minnie.tuhs.org/UnixTree/V7/
(The kernel source is found under /usr/sys/ and most
of the rest under /usr/src/)
- Raw text -