C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

xeffets test ne va pas

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ (French)
View previous topic :: View next topic  
Author Message
giovanni
Guest





PostPosted: Sat Dec 13, 2008 4:53 pm    Post subject: xeffets test ne va pas Reply with quote



voila je compile et me dit erreur modex.h pourtant il est dans le include
....

C xeffects.h: No such file or directory.

je comprend pas pourquoi

#include "modex.h"
#include "xeffects.h"

void XEffects::setYScroll(unsigned char* upper,
unsigned char* uppermiddle,
unsigned char* lowermiddle,
unsigned char* lower)
{
ModeX::onVidPage(upper ,64000u,3*16000u);
ModeX::onVidPage(uppermiddle,64000u,2*16000u);
ModeX::onVidPage(lowermiddle,64000u,1*16000u);
ModeX::onVidPage(lower ,64000u,0*16000u);
}

void XEffects::YScroll(unsigned int row)
{
ModeX::WaitRetrace();
ModeX::setStart(row*80);
}

void XEffects::setSplit(unsigned char* upper, unsigned char* lower)
{
ModeX::setStart(16000u);
ModeX::onVidPage(upper,64000u,0*16000u);
ModeX::onVidPage(lower,64000u,1*16000u);
}

void XEffects::SplitScreen(unsigned char row)
{
ModeX::WaitRetrace();
asm
{
mov bl,row
xor bh,bh
shl bx,1 //*2 wg. Zeilenverdopplung
mov cx,bx

mov dx,3d4h //CRTC
mov al,07h //Register 7 (Overflow low)
out dx,al
inc dx
in al,dx
and al,11101111b //Bit 4 mit Bit 8 der Zeile laden
shr cx,4
and cl,16
or al,cl
out dx,al //und setzen

dec dx
mov al,09h //Register 9 (Maximum Row Adress)
out dx,al
inc dx
in al,dx
and al,10111111b //Bit 6 mit Bit 9 der Zeile laden
shr bl,3
and bl,64
or al,bl
out dx,al //und setzen

dec dx
mov al,18h //Register 18h (Line Compare/Split Screen)
mov ah,row //restlichen 8 Bit setzen
shl ah,1
out dx,ax
}
}
Back to top
Guillaume GOURDIN
Guest





PostPosted: Mon Dec 15, 2008 7:31 pm    Post subject: Re: xeffets test ne va pas Reply with quote



Quote:
voila je compile et me dit erreur modex.h pourtant il est dans le include

Est-ce que le compilateur sait oł trouver le fichier modex.h? Si ce
n'est pas le cas, il faut le lui dire...
Back to top
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ (French) All times are GMT
Page 1 of 1

 
 


Powered by phpBB © 2001, 2006 phpBB Group