Mail Archives: djgpp/1996/06/12/14:33:19
Xref: | news2.mv.net comp.os.msdos.djgpp:4885
|
From: | richard DOT griffiths AT zetnet DOT co DOT uk (Griffiths, R - 196)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | ASM
|
Date: | 12 Jun 1996 13:53:09 GMT
|
Organization: | ;-(
|
Lines: | 40
|
Message-ID: | <4pmi45$932@roch.zetnet.co.uk>
|
NNTP-Posting-Host: | man-q3.zetnet.co.uk
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Ok, I'm sure I'm not the only one around here that doesn't just exactly
love the ASM syntax of djgpp so I have an idea and was wondering if any
one else has managed to do this.
Soo...
Would it be possible to write a procedure in pure-100% asm, compile it to
an .obj with TASM or MASM and then call the asm procedure from with in my
djgpp souce??
Has anyone ever done this?
Here is one of the routines that I would like to have in the .obj:
PutPixel(X,Y,Col,Where) asm
{
mov ax,[where]
mov es,ax
mov bx,[X]
mov dx,[Y]
mov di,bx
mov bx, dx
shl dx, 8
shl bx, 6
add dx, bx
add di, dx
mov al, [Col]
stosb
}
Notice that is take's paramiters.
So can anyone help here?
Thanks alot,
Richard Griffiths
- Raw text -