delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/07/30/01:16:37

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "philippe meynard" <philippe DOT meynard AT vendeeconcept DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: PB compilation
Date: Thu, 29 Jul 2004 12:51:34 +0200
Organization: Guest of France Telecom Oleane's newsreading service
Lines: 61
Message-ID: <ceal97$5j8$1@s1.read.news.oleane.net>
NNTP-Posting-Host: 62.161.106.155
X-Trace: s1.read.news.oleane.net 1091098727 5736 62.161.106.155 (29 Jul 2004 10:58:47 GMT)
X-Complaints-To: abuse AT oleane DOT net
NNTP-Posting-Date: Thu, 29 Jul 2004 10:58:47 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Before I compiled with gcc2.953 and I have no error on :

void set_start_adresse_asm(int x, int y)
{
 unsigned short int low_ad;
 unsigned short int high_ad;


 high_ad = ((x +y*WIDTH)/4)/65536;
 low_ad = ((x+ y*WIDTH)/4)%65536 ;

 asm volatile( "
  push %%eax
  push %%ebx
  push %%ecx
  push %%edx
  push %%esi
  push %%edi

  call * %0

  pop %%edi
  pop %%esi
  pop %%edx
  pop %%ecx
  pop %%ebx
  pop %%eax"
  :
  :
  "r"(pm_setstart),
  "b"(0x00),
  "c"(low_ad),
  "d"(high_ad)

 );
}

and now when i compiled with gcc3.41 I have this error !!:

gcc -Wall -m486 -O3 -c graph1.c -o graph1.o

graph1.c: In function `set_start_adresse_asm':
graph1.c:258: error: missing terminating " character
graph1.c:259: error: `push' undeclared (first use in this function)
graph1.c:259: error: (Each undeclared identifier is reported only once
graph1.c:259: error: for each function it appears in.)
graph1.c:259: error: parse error before '%' token
graph1.c:273: error: missing terminating " character
graph1.c: In function `gestion_points_scroll':
graph1.c:330: warning: implicit declaration of function `_farsetsel'
graph1.c:334: warning: implicit declaration of function `_farnspokeb'
graph1.c: In function `scroll_h_asm_recopie_points_ostype1':
graph1.c:376: warning: implicit declaration of function `_farpokeb'
graph1.c: In function `copier_zone':
graph1.c:747: warning: implicit declaration of function `_farnspokel'
graph1.c:747: warning: implicit declaration of function `_farnspeekl'
make.exe: *** [graph1.o] Error 1

any suggestions ?


- Raw text -


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