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
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.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
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
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.