delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/23/13:12:56

Message-ID: <36A9C5BF.A29801F0@gmx.net>
Date: Sat, 23 Jan 1999 13:51:11 +0100
From: Christian Hofrichter <ChristianHofrichter AT gmx DOT net>
X-Mailer: Mozilla 4.5 [de]C-CCK-MCD QXW03201 (Win95; I)
X-Accept-Language: de,en
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Can't use protected mode setdisplaystart function
Reply-To: djgpp AT delorie DOT com

I cannot use the protected-mode funtion setdisplaystart. Everytime I try
to use it, the screen jumps to unpredictable places.
Nevertheless the protected mode bankswitching funtions works.
After I have copied the code from the address-space below 1MB to my own
buffer,  I try to call this function via the following syntax.

asm("call *%3" :
                       :"b"(0),"c"(pixel),"d"(scanline),"a"((unsigned
long)protcode.prot_setdisplaystart)
                       :"%eax","%ebx","%ecx","%edx","%esi","%edi");


Has anyone some ideas why it does not work ?
Besides, I  have read severaltimes something about access rights which
are stored in a subtable of vesa-function 0xA and which are needed to
access ports or something like this. Is this right ? If this is right,
what shall I do with this subtable ?
I thought one could access ports without any restrictions ?
I would be pleased if anyone could explain this.

- Raw text -


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