-
Notifications
You must be signed in to change notification settings - Fork 4
/
0x813012D0 - DEMOInit.txt
136 lines (135 loc) · 5.59 KB
/
0x813012D0 - DEMOInit.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
DEMOInit (1)
HeapAlloc (1)
OSAllocFromHeap (1)
OSPanic (4)
HeapAlloc (2) ...
VIGetTvFormat (2)
OSPanic (5)
VIConfigure (1)
HeapAlloc (3) ...
GXInit (1)
__DEMOInitGX (1)
GXSetViewport (1)
GXSetDispCopySrc (1)
GXSetDispCopyDst (1)
GXSetCopyFilter (1)
GXSetPixelFmt (1)
0x81376CA0 (1)
0x81379B7C (1)
GXSetCopyClamp (1)
GXSetPixelFmt (2)
0x81376CA0 (2)
GXSetScissor (1)
GXSetCopyClear (1)
GXCopyDisp (1)
GXCopyDisp (2)
GXCopyDisp (3)
GXCopyDisp (4)
GXSetDispCopyGamma (1)
VISetBlack (1)
VISetNextFrameBuffer (1)
VIFlush (1)
VIWaitForRetrace (1)
DEMOInit
813012D0 7C0802A6 mflr r0
813012D4 90010004 stw r0, 4 (r1)
813012D8 9421FFD0 stwu r1, -48 (r1)
813012DC 93E1002C stw r31, 44 (r1)
813012E0 7C9F2378 mr r31, r4
813012E4 93C10028 stw r30, 40 (r1)
813012E8 93A10024 stw r29, 36 (r1)
813012EC 7C7D1B78 mr r29, r3
813012F0 A0840004 lhz r4, 4 (r4)
813012F4 A01F0008 lhz r0, 8 (r31)
813012F8 3864000F addi r3, r4, 15
813012FC 54630436 rlwinm r3, r3, 0, 16, 27 mask:0x0000FFF0
81301300 7C0301D6 mullw r0, r3, r0
81301304 541E083C rlwinm r30, r0, 1, 0, 30 mask:0xFFFFFFFE
81301308 387E0000 addi r3, r30, 0
8130130C 48006B35 bl HeapAlloc
81301310 906D82F0 stw r3, -0x7D10 (r13)
81301314 7FC3F378 mr r3, r30
81301318 48006B29 bl HeapAlloc
8130131C 906D82F4 stw r3, -0x7D0C (r13)
81301320 281F0000 cmplwi r31, 0
81301324 800D82F4 lwz r0, -0x7D0C (r13)
81301328 900D82F8 stw r0, -0x7D08 (r13)
8130132C 4182000C beq- 0x81301338
81301330 93ED82FC stw r31, -0x7D04 (r13)
81301334 48000074 b 0x813013A8
81301338 480691C1 bl VIGetTvFormat
8130133C 2C030001 cmpwi r3, 1
81301340 41820030 beq- 0x81301370
81301344 40800010 bge- 0x81301354
81301348 2C030000 cmpwi r3, 0
8130134C 40800014 bge- 0x81301360
81301350 48000040 b 0x81301390
81301354 2C030003 cmpwi r3, 3
81301358 40800038 bge- 0x81301390
8130135C 48000024 b 0x81301380
81301360 3C60814B lis r3, 0x814B
81301364 3803CA40 subi r0, r3, 0x35C0
81301368 900D82FC stw r0, -0x7D04 (r13)
8130136C 4800003C b 0x813013A8
81301370 3C60814B lis r3, 0x814B
81301374 3803CAB8 subi r0, r3, 0x3548
81301378 900D82FC stw r0, -0x7D04 (r13)
8130137C 4800002C b 0x813013A8
81301380 3C60814B lis r3, 0x814B
81301384 3803CA7C subi r0, r3, 0x3584
81301388 900D82FC stw r0, -0x7D04 (r13)
8130138C 4800001C b 0x813013A8
81301390 3C608138 lis r3, 0x8138
81301394 4CC63182 crclr 6
81301398 38A31010 addi r5, r3, 0x1010
8130139C 386D800C subi r3, r13, 0x7FF4
813013A0 38800066 li r4, 102
813013A4 4805C601 bl OSPanic
813013A8 7FE3FB78 mr r3, r31
813013AC 48068709 bl VIConfigure
813013B0 381D001F addi r0, r29, 31
813013B4 541E0034 rlwinm r30, r0, 0, 0, 26 mask:0xFFFFFFE0
813013B8 387E0000 addi r3, r30, 0
813013BC 48006A85 bl HeapAlloc
813013C0 906D8300 stw r3, -0x7D00 (r13)
813013C4 7FC4F378 mr r4, r30
813013C8 806D8300 lwz r3, -0x7D00 (r13)
813013CC 480720FD bl GXInit
813013D0 906D8304 stw r3, -0x7CFC (r13)
813013D4 7FE3FB78 mr r3, r31
813013D8 4BFFFDB9 bl __DEMOInitGX
813013DC 80028048 lwz r0, -0x7FB8 (r2)
813013E0 3C800100 lis r4, 0x0100
813013E4 38610014 addi r3, r1, 20
813013E8 90010018 stw r0, 24 (r1)
813013EC 3884FFFF subi r4, r4, 1
813013F0 80010018 lwz r0, 24 (r1)
813013F4 90010014 stw r0, 20 (r1)
813013F8 48075965 bl GXSetCopyClear
813013FC 806D82F0 lwz r3, -0x7D10 (r13)
81301400 38800001 li r4, 1
81301404 48075C05 bl GXCopyDisp
81301408 806D82F0 lwz r3, -0x7D10 (r13)
8130140C 38800001 li r4, 1
81301410 48075BF9 bl GXCopyDisp
81301414 806D82F4 lwz r3, -0x7D0C (r13)
81301418 38800001 li r4, 1
8130141C 48075BED bl GXCopyDisp
81301420 806D82F4 lwz r3, -0x7D0C (r13)
81301424 38800001 li r4, 1
81301428 48075BE1 bl GXCopyDisp
8130142C 38600000 li r3, 0
81301430 48075BBD bl GXSetDispCopyGamma
81301434 38600001 li r3, 1
81301438 48068E95 bl VISetBlack
8130143C 806D82F8 lwz r3, -0x7D08 (r13)
81301440 48068E21 bl VISetNextFrameBuffer
81301444 48068D01 bl VIFlush
81301448 480681A5 bl VIWaitForRetrace
8130144C 80010034 lwz r0, 52 (r1)
81301450 83E1002C lwz r31, 44 (r1)
81301454 83C10028 lwz r30, 40 (r1)
81301458 83A10024 lwz r29, 36 (r1)
8130145C 38210030 addi r1, r1, 48
81301460 7C0803A6 mtlr r0
81301464 4E800020 blr