projects
/
metatoy
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
meta shapes
[metatoy]
/
src
/
vga.h
1
#ifndef VGA_H_
2
#define VGA_H_
3
4
void vga_setpal(int startidx, int count, unsigned char *cmap);
5
void vga_setpalent(int idx, int r, int g, int b);
6
7
#define wait_vsync() \
8
asm volatile ( \
9
"0: in $0x3da, %%al\n\t" \
10
"jnz 0b\n\t" \
11
"0: in $0x3da, %%al\n\t" \
12
"jz 0b\n\t" \
13
::: "eax")
14
15
#endif /* VGA_H_ */