Skip to content

Instantly share code, notes, and snippets.

View jeremy-allen-cs's full-sized avatar

Jeremy Allen (Carve Sytsems) jeremy-allen-cs

View GitHub Profile
#include <sys/io.h>
#define FIFO 0x3f5
int main() {
int i;
iopl(3);
outb(0x0a,0x3f5); /* READ ID */
for (i=0;i<10000000;i++)
# 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):