delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/09/20:30:16

From: "Lennart Marien" <lennartm AT metronet DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Newbie prolem with ASM!
Date: 10 Mar 1998 00:33:00 GMT
Organization: -
Lines: 24
Message-ID: <01bd4bbc$5778a0a0$c1cca8c1@rechner-2>
NNTP-Posting-Host: hamburg2.pop.metronet.de
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi!

I tried to use a simple asm function in DJGPP:

#include <asm.h>
[...]

void TextMode(){

 _asm_("
 movsw $0x0003, %ax
 int 0x10
 ")
}

The program compiles correctly, but if I try to build the .EXE the
compiler fails:
undefined reference `_asm_' first use this function
[.......]

Where´s the problem?Which files do I have to include to use
the Assembler?

Thanks!

- Raw text -


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