|
-
July 10th, 2002, 12:21 PM
#3
Junior Member
To be more precise, this is the piece of code I am looking at:
for(i=0;i<128;i++)
{
outp(0x70,i);
if(i%8==0)printf("\n");
printf(" [%2x=%2x] ",i,inp(0x71));
}
It looks to me like it's dumping the content of certain memory addresses. It would be nice if someone can explain what is "0X##" in the code? That looks like a memory address to me; not sure. If it is an address, what's located in "0X70" and "0X71"? A more general question to that is, what does that area of memory represent? And on the top of that, why the loop from 0 -127? I hope the question are all related in someways. Also, if outp() is a library function that outputs bytes, then, why not use printf()? Sorry about the hairy questions. It's just that it's 4:11AM here, and I am having problem sleeping with the stuff unexplained. BTW, thanx for the valuable info. smirc. Appreciate it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|