delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/10/15/11:49:19

From: "Bart van den Burg" <bart AT bart99 DOT tmfweb DOT nl>
Newsgroups: comp.os.msdos.djgpp
Subject: assembly
Date: Mon, 15 Oct 2001 17:45:50 +0200
Organization: XO Communications B.V.
Lines: 25
Message-ID: <9qf07f$1t6$1@cyan.nl.gxn.net>
NNTP-Posting-Host: asd-tel-ap01-d12-019.dial.freesurf.nl
X-Trace: cyan.nl.gxn.net 1003160623 1958 62.100.11.19 (15 Oct 2001 15:43:43 GMT)
X-Complaints-To: abuse AT freesurf DOT nl
NNTP-Posting-Date: 15 Oct 2001 15:43:43 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

hi

I've got this small piece of code:

void setMode() {
 asm {
  mov ax, 0x13
  int 0x10
 }
}

void main() {
 setMode();
}

but with djgpp i get this error:
mine.cpp: In function `void setMode()':
mine.cpp:2: parse error before `{'

what's wrong here?

Bart



- Raw text -


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