projects
/
swan-dev
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
inc: cleanup and organize header files
[swan-dev]
/
src
/
main.c
1
/* #include <code16bit.h> */
2
#include <memory.h>
3
4
void outport(c)
5
unsigned c;
6
{
7
#asm
8
xor dx, dx
9
mov dx, ax
10
shr dx, 8
11
out dx, al
12
;out 0x15, al
13
#endasm
14
}
15
16
int main()
17
{
18
while(1) {
19
/* outport(0x15EE); */
20
unsigned reg = 0x15;
21
unsigned val = 0xEE;
22
outport((reg << 8) | val);
23
24
}
25
return 0;
26
}