Status indecation

zippo zippo752001@comcast.net
Wed Jul 23 23:06:00 GMT 2003


On Wed, 23 Jul 2003 10:28:33 -0400
zippo <zippo752001@comcast.net> wrote:

> I am trying to write a program and i need to be able to view the bios information in memory, "capslock numlock shift etc" how ever i do not know the code to read raw from a specific memory location, any help and i will be greatful.

>> maybe there is a easier way todo what i am trying todo. All i am trying todo is read weather capslock numlock and scrolllock are on and then return a value "boolean" i tried 


#include <stdio.h>
typedef volatile char byte;
int main() {
	byte* ptr = (byte*)0xC000000;
	printf("%20x\n", *ptr &0xFF);
}

it compiled but when run gave me a Segmentation Fault
I was told about (API) calls but need somemore information. Thanks for any and all your help, zippo



More information about the Gcc-help mailing list