delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/14/07:02:16

From: waage AT brainerd DOT net (Moses)
Newsgroups: comp.os.msdos.djgpp
Subject: Inter -> AT&T (here we go again)
Date: Fri, 14 Mar 1997 08:22:36 GMT
Organization: MEANS
Lines: 39
Message-ID: <33290941.14910184@news.polaristel.net>
NNTP-Posting-Host: ascend1-13.brainerd.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I was hoping that I would NOT have to write this but:

I am having marjor problems getting into the AT&T "groove" for writing
asm.  When I used TCC all I had to do if I waned to put this into ax
was:

mov ax, this

But I just cant seem to get it to be that simple in AT&T ( or djgpp,
Im not sure which is making it more difficult ).  What I really want
to do is 

    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

( BTW: this is just some code I ripped out of PCGPE that puts a pixel
on the screen )

How can I get this into at&t asm?  I need to know more than just some
code that I can copy - paste, I need to know why I must do things
differently, and how to do so.

Thank you...
Please reply via e-mail ( I dont visit newsgroups often enough to
catch a responce here )



Moses -- Apocalypse Software

- Raw text -


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