projects
/
bootcensus
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tried to make ps/2 mouse work in "remote mode" (polling), but it doesn't
[bootcensus]
/
src
/
startup.s
diff --git
a/src/startup.s
b/src/startup.s
index
8041c13
..
ef3cd38
100644
(file)
--- a/
src/startup.s
+++ b/
src/startup.s
@@
-20,8
+20,11
@@
.extern _bss_start
.extern _bss_end
.extern pcboot_main
.extern _bss_start
.extern _bss_end
.extern pcboot_main
+ .extern wait_vsync
+ .extern kb_getkey
# move the stack to the top of the conventional memory
# move the stack to the top of the conventional memory
+ cli
movl $0x80000, %esp
# zero the BSS section
movl $0x80000, %esp
# zero the BSS section
@@
-42,6
+45,8
@@
skip_bss_zero:
.global logohack
logohack:
.global logohack
logohack:
+ pusha
+
# copy palette
mov $logo_pal, %esi
xor %cl, %cl
# copy palette
mov $logo_pal, %esi
xor %cl, %cl
@@
-131,16
+136,18
@@
xloop:
incl frameno
incl frameno
- # wait vsync
- mov $0x3da, %dx
-0: in %dx, %al
- and $8, %al
- jnz 0b
-0: in %dx, %al
- and $8, %al
- jz 0b
+ call wait_vsync
+
+ # check for escape keypress
+ call kb_getkey
+ cmp $27, %eax
+ jz 0f
+
jmp frameloop
jmp frameloop
+0: popa
+ ret
+
xval: .long 0
yval: .long 0
frameno: .long 0
xval: .long 0
yval: .long 0
frameno: .long 0