From c020ccdb10f5006e8900cde2a1d61b1175bf3081 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Sat, 1 Sep 2018 05:38:14 +0200 Subject: [PATCH] fix boot disassembly to match original file --- F3DZEX.asm | 13 ++++++++----- bin/.gitignore | 1 - bin/common.boot.bin | Bin 208 -> 0 bytes task.asm | 5 ++--- 4 files changed, 10 insertions(+), 9 deletions(-) delete mode 100644 bin/common.boot.bin diff --git a/F3DZEX.asm b/F3DZEX.asm index 271128c..f6b2089 100644 --- a/F3DZEX.asm +++ b/F3DZEX.asm @@ -179,7 +179,10 @@ fill 0xD0 origin 0x0000 base 0x1000 - j label_1054 +// quirk with the addressing used in the boot file: +constant BOOT_IMEM_ADDR(0xA4000000) // doesn't affect functionality + + j label_1054 | BOOT_IMEM_ADDR addi at, r0, TASK_START label_1008: @@ -195,7 +198,7 @@ label_1020: mfc0 a0, DMA_BUSY // wait until it finishes bnez a0,- nop - jal func_103C // check error status + jal func_103C | BOOT_IMEM_ADDR // check error status nop jr a3 // jump to the new code we just loaded mtc0 r0, SEMAPHORE @@ -219,7 +222,7 @@ label_1054: andi v0, v0, 2 // check flag 1 beqz v0,+ nop - jal func_103C + jal func_103C | BOOT_IMEM_ADDR nop mfc0 v0, RDP_STATUS @@ -243,9 +246,9 @@ label_1080: mfc0 a0, DMA_BUSY // wait until it finishes bnez a0,- nop - jal func_103C // check error status + jal func_103C | BOOT_IMEM_ADDR // check error status nop - j label_1008 + j label_1008 | BOOT_IMEM_ADDR nop nop diff --git a/bin/.gitignore b/bin/.gitignore index 64f15a6..88f5125 100644 --- a/bin/.gitignore +++ b/bin/.gitignore @@ -3,4 +3,3 @@ # files without disassemblies yet: !6102.bin !F3DZEX.data.bin -!common.boot.bin diff --git a/bin/common.boot.bin b/bin/common.boot.bin deleted file mode 100644 index a6013bfbb47c8e1c980d84b857b846c575a173f7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 208 zcmaKmF$%&!5Ji7B3)vK5w@_3FGH7GDf`#QLN3gQ@ATC;HkwfJuUcf83X5G|IF$0g` z{a-_`q_9K3fs@i+rE-A}fHwo)9jHBKA$~AU18vjA3x?qc8o}Nm%mI~fIq`!zflo=O tNo#a#-$6N|$}oGV&hTA