]> Joshua Wise's Git repositories - netwatch.git/blame - aseg/counter.c
aseg with a working C execution environment
[netwatch.git] / aseg / counter.c
CommitLineData
4bea7daf
JW
1char counter = 0;
2
3#define outb(port, val) \
4({ asm volatile("outb %0, %%dx" : : "a" ((unsigned char)(val)) , "d" ((unsigned short)(port))); })
5
6void __start (void) {
7 counter++;
8 outb (0x80, counter);
9}
10
This page took 0.017302 seconds and 4 git commands to generate.