www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/03/22/13:46:45

From: "Alexei A. Frounze" <dummy_addressee AT hotmail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: assembler probs
Date: Thu, 22 Mar 2001 13:31:12 -0500
Organization: Global Crossing Telecommunications
Lines: 51
Sender: UNKNOWN AT 209-130-219-122 DOT nas1 DOT roc DOT gblx DOT net
Message-ID: <99dgb5$npc$1@node17.cwnet.frontiernet.net>
References: <99dc06$p3b$1 AT uranium DOT btinternet DOT com>
NNTP-Posting-Host: 209-130-219-122.nas1.roc.gblx.net
X-Trace: node17.cwnet.frontiernet.net 985285797 24364 209.130.219.122 (22 Mar 2001 18:29:57 GMT)
X-Complaints-To: abuse AT frontiernet DOT net
NNTP-Posting-Date: 22 Mar 2001 18:29:57 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

see the inline asm tutorial which is linked on the djgpp site in the
documentation sections.

--
Alexei A. Frounze
alexfru [AT] chat [DOT] ru
http://alexfru.chat.ru
http://members.xoom.com/alexfru/
http://welcome.to/pmode/


"Michael Duxbury" <M DOT R DOT Duxbury AT btinternet DOT com> wrote in message
news:99dc06$p3b$1 AT uranium DOT btinternet DOT com...
> I am trying to compile this but get a slight problem with the hello:   db
> 'Hello, world!'  line.
>
> I can't seem to find an example of how the gcc compiler handles this part
of
> assembly
>
> #include <stdio.h>
>
> void drawline(int x1,int x2, int y, char color);
>
>
> int main()
> {
>   drawline(23,34,56,12);
>   }
>
> void hello() {
>     asm ("movb  %ah,ox09;
>         movb     %dx,$hello;
>         intb     0x21;
>         movb     5ax,0x4c00;
>         intb     0x20;"
>
>  hello:   db    'Hello, world!' )
>  }
>
>
> void drawline(int x1,int x2, int y, char color)
> {
>   asm (" movb %ax , 0xa000");
> }
>
> Anyone help me out please?
>
>


- Raw text -


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