Decompile z_jpeg.c (#70)

* Decompile z_jpeg.c

- Decompile z_jpeg.c
- Move .bss variables from fault.c and fault_drawer.c into .s files to avoid bss reordering

* Rename JPEGWork to JpegWork and minor fix in Jpeg_GetU16
This commit is contained in:
Random
2020-04-14 01:03:10 +02:00
committed by GitHub
parent f3c945cc82
commit 298abfb128
22 changed files with 577 additions and 629 deletions
+23
View File
@@ -0,0 +1,23 @@
.include "macro.inc"
# assembler directives
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
.set gp=64 # allow use of 64-bit general purposee registers
.section .bss
glabel sFaultStructPtr
.space 4
glabel sFaultIsWaitingForInput
.space 4
glabel sFaultStack
.space 0x600
glabel sFaultThreadInfo
.space 0x20
glabel gFaultStruct
.space 0x850
+14
View File
@@ -0,0 +1,14 @@
.include "macro.inc"
# assembler directives
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
.set gp=64 # allow use of 64-bit general purposee registers
.section .bss
glabel sFaultDrawerStruct
.space 0x3C
glabel D_8016B6C0
.space 0x20
+7 -1
View File
@@ -25,4 +25,10 @@ glabel D_80155C70
.incbin "baserom.z64", 0xBCCE10, 0x2E0
glabel D_80155F50
.incbin "baserom.z64", 0xBCD0F0, 0x1E40
.incbin "baserom.z64", 0xBCD0F0, 0x1630
glabel D_80157580
.incbin "baserom.z64", 0xBCE720, 0x7B0
glabel D_80157D30
.incbin "baserom.z64", 0xBCEED0, 0x60
+7 -1
View File
@@ -8,4 +8,10 @@
.section .text
glabel D_801120C0
.incbin "baserom.z64", 0xB89260, 0x3360
.incbin "baserom.z64", 0xB89260, 0xFB0
glabel D_80113070
.incbin "baserom.z64", 0xB8A210, 0x18C0
glabel D_80114930
.incbin "baserom.z64", 0xB8BAD0, 0xAF0