Mail Archives: djgpp/1996/10/30/23:39:02
From: | "Neil Miller" <miller AT citilink DOT com>
|
Newsgroups: | comp.os.msdos.djgpp,rec.games.programmer
|
Subject: | Help!! What's wrong with my code??
|
Date: | 31 Oct 1996 02:02:31 GMT
|
Organization: | (missing)
|
Lines: | 45
|
Message-ID: | <01bbc6cf$711bd540$21d10bce@miller>
|
NNTP-Posting-Host: | ppp4.citilink.com
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I am new to using DJGPP and am trying to use Denthor's VGA trainers to
program graphics in 13h. This is the code I have so far. This is from the
first tutorial. I am getting errors on _AX (from SetMCA & SetText)
something about the function is not declared?? The other is vga, in the
tutorial it says it is a pointer to the address 0xa000, is this automatic
or do I have to do something with it?? Any help would be appreciated.
// Begin Code
int Colour;
void SetMCGA(void); //enter mode 13h
void SetText(void); //enter text mode
void CLS();//clear screen to "colour" color
main(void) {
SetMCGA();
Colour == 4;
CLS();
}
void SetMCGA() {
_AX = 0x0013;
geninterrupt (0x10);
}
void SetText() {
_AX = 0x0003;
geninterrupt (0x10);
}
void CLS() {
memset(vga, Colour, 0xffff);
}
//End Code
If this is a stupid question I appologize, but I can't figure it out. I
think _AX is supposed to inline assemblly if that helps.
^NM^
miller AT citilink DOT com
- Raw text -