This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <sys/io.h> | |
#define FIFO 0x3f5 | |
int main() { | |
int i; | |
iopl(3); | |
outb(0x0a,0x3f5); /* READ ID */ | |
for (i=0;i<10000000;i++) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright Carve Systems 2015 | |
# | |
# LICENSE: If you use this code, and it helped you learn or accomplish a goal, | |
# please let us know. We would love to hear from you. | |
# Keep our numbers clean and such | |
def toint32(val): | |
return val & 0xffffffff | |
def toint16(val): |