Message-ID: <36A9C5BF.A29801F0@gmx.net> Date: Sat, 23 Jan 1999 13:51:11 +0100 From: Christian Hofrichter 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 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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.