Hi,
i want to access processor registeres using c.but i donot know processor information(how many registres and all).
could you please tell me how to access processor info
Printable View
Hi,
i want to access processor registeres using c.but i donot know processor information(how many registres and all).
could you please tell me how to access processor info
You could do it with inline assembly.
Why do you want to know?
If you don't know how to access them or how many there are you probably shouldn't be accessing them.
i written a small code
but on linux it is giving compiler error on init86.the same i have implement on linux.Code:struct REGS inregs, outregs;
int86(18,&inregs,&outregs);
memory=outregs.x.ax;
printf("memory:%d',memory);
how should i do it.
yeah the same thing iam looking for. thank you for link.
Of course, calling the BIOS from Linux won't work anyways, so it's kind of pointless discussion. That only works in DOS - the same wouldn't work in Windows either [although in a DOS-box you can do that sort of thing, if you wish, because DOS emulation in Windows supports running most BIOS calls].
--
Mats