annotate loader/stubs.s @ 12387:5c2e728f5a00

keepaspect support, tryed to clean up DirectxManageDisplay a bit, enabled UYVY support and fixed bugs where switching to fullscreen would keep the console window on top and where the initial window position is wrongly calculated
author faust3
date Sat, 01 May 2004 20:21:03 +0000
parents ebc1cd8014a5
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1038
b36fb1ae4b53 applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents: 713
diff changeset
1 .data
b36fb1ae4b53 applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents: 713
diff changeset
2 .LC0: .string "Called unk_%s\n"
7107
ebc1cd8014a5 align -> balign patch by (Bj¸«Órn Sandell <biorn at dce dot chalmers dot se>)
michael
parents: 5741
diff changeset
3 .balign 4
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
4 .globl unk_exp1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
5 unk_exp1:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
6 pushl %ebp
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
7 movl %esp,%ebp
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
8 subl $4,%esp
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
9 movl $1,-4(%ebp)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
10 movl -4(%ebp),%eax
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
11 movl %eax,%ecx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
12 movl %ecx,%edx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
13 sall $4,%edx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
14 subl %eax,%edx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
15 leal 0(,%edx,2),%eax
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
16 movl %eax,%edx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
17 addl $export_names,%edx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
18 pushl %edx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
19 pushl $.LC0
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
20 call printf
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
21 addl $8,%esp
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
22 xorl %eax,%eax
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
23 leave
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
24 ret
5741
a306c3258e4d added _EH_prolog (needed by mss1 codec)
alex
parents: 1038
diff changeset
25 .globl exp_EH_prolog
a306c3258e4d added _EH_prolog (needed by mss1 codec)
alex
parents: 1038
diff changeset
26 exp_EH_prolog:
a306c3258e4d added _EH_prolog (needed by mss1 codec)
alex
parents: 1038
diff changeset
27 pushl $0xff
a306c3258e4d added _EH_prolog (needed by mss1 codec)
alex
parents: 1038
diff changeset
28 pushl %eax
a306c3258e4d added _EH_prolog (needed by mss1 codec)
alex
parents: 1038
diff changeset
29 pushl %fs:0
a306c3258e4d added _EH_prolog (needed by mss1 codec)
alex
parents: 1038
diff changeset
30 movl %esp, %fs:0
a306c3258e4d added _EH_prolog (needed by mss1 codec)
alex
parents: 1038
diff changeset
31 movl 12(%esp), %eax
a306c3258e4d added _EH_prolog (needed by mss1 codec)
alex
parents: 1038
diff changeset
32 movl %ebp, 12(%esp)
a306c3258e4d added _EH_prolog (needed by mss1 codec)
alex
parents: 1038
diff changeset
33 leal 12(%esp), %ebp
a306c3258e4d added _EH_prolog (needed by mss1 codec)
alex
parents: 1038
diff changeset
34 pushl %eax
a306c3258e4d added _EH_prolog (needed by mss1 codec)
alex
parents: 1038
diff changeset
35 ret