diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2023-01-31 18:52:49 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2023-01-31 18:52:49 -0400 |
commit | 67effb9191423d8e5d9e386eaa0f389267c775ce (patch) | |
tree | 578516a147ec8a79c0c4b1ef01c0c134b320a5ea /asm/Dolphin/db | |
parent | 24d879de227c348cc21880f047287f79accb44d1 (diff) |
asm: Start work on importing the Dolphin SDK
It's a start, but need to import more.
Diffstat (limited to 'asm/Dolphin/db')
-rw-r--r-- | asm/Dolphin/db/db-data.s | 17 | ||||
-rw-r--r-- | asm/Dolphin/db/db.s | 93 |
2 files changed, 110 insertions, 0 deletions
diff --git a/asm/Dolphin/db/db-data.s b/asm/Dolphin/db/db-data.s new file mode 100644 index 0000000..5d37baa --- /dev/null +++ b/asm/Dolphin/db/db-data.s @@ -0,0 +1,17 @@ +.include "macros.inc" + +.section .data + +.balign 8 + +.global lbl_804eeb98 +.type lbl_804eeb98, @object +lbl_804eeb98: +/* 804EEB98 44424578 */ .4byte 0x44424578 +/* 804EEB9C 63657074 */ .4byte 0x63657074 +/* 804EEBA0 696F6E44 */ .4byte 0x696f6e44 +/* 804EEBA4 65737469 */ .4byte 0x65737469 +/* 804EEBA8 6E617469 */ .4byte 0x6e617469 +/* 804EEBAC 6F6E0A00 */ .4byte 0x6f6e0a00 +.size lbl_804eeb98, . - lbl_804eeb98 + diff --git a/asm/Dolphin/db/db.s b/asm/Dolphin/db/db.s new file mode 100644 index 0000000..42438f1 --- /dev/null +++ b/asm/Dolphin/db/db.s @@ -0,0 +1,93 @@ +.include "macros.inc" + +.section .text + +.global func_8036c214 +.type func_8036c214, @function +func_8036c214: +/* 8036C214 3C808000 */ lis r4, 0x8000 +/* 8036C218 38040040 */ addi r0, r4, 0x40 +/* 8036C21C 3C608037 */ lis r3, func_8036c284@ha +/* 8036C220 900DC9F0 */ stw r0, lbl_805c6810@sda21(0) +/* 8036C224 3863C284 */ addi r3, r3, func_8036c284@l +/* 8036C228 3C038000 */ addis r0, r3, 0x8000 +/* 8036C22C 90040048 */ stw r0, 0x48(r4) +/* 8036C230 38000001 */ li r0, 0x1 +/* 8036C234 900DC9F4 */ stw r0, lbl_805c6814@sda21(0) +/* 8036C238 4E800020 */ blr +.size func_8036c214, . - func_8036c214 + + +.global func_8036c23c +.type func_8036c23c, @function +func_8036c23c: +/* 8036C23C 7C0802A6 */ mflr r0 +/* 8036C240 3C60804F */ lis r3, lbl_804eeb98@ha +/* 8036C244 90010004 */ stw r0, 4(r1) +/* 8036C248 3863EB98 */ addi r3, r3, lbl_804eeb98@l +/* 8036C24C 4CC63182 */ crclr 6 +/* 8036C250 9421FFE8 */ stwu r1, -0x18(r1) +/* 8036C254 93E10014 */ stw r31, 0x14(r1) +/* 8036C258 808000C0 */ lwz r4, 0xc0(0) +/* 8036C25C 3FE48000 */ addis r31, r4, 0x8000 +/* 8036C260 48002455 */ bl func_8036e6b4 +/* 8036C264 7FE3FB78 */ mr r3, r31 +/* 8036C268 480020D9 */ bl func_8036e340 +/* 8036C26C 4BFFFF4D */ bl func_8036c1b8 +/* 8036C270 8001001C */ lwz r0, 0x1c(r1) +/* 8036C274 83E10014 */ lwz r31, 0x14(r1) +/* 8036C278 38210018 */ addi r1, r1, 0x18 +/* 8036C27C 7C0803A6 */ mtlr r0 +/* 8036C280 4E800020 */ blr +.size func_8036c23c, . - func_8036c23c + + +.global func_8036c284 +.type func_8036c284, @function +func_8036c284: +/* 8036C284 7C6000A6 */ mfmsr r3 +/* 8036C288 60630030 */ ori r3, r3, 0x30 +/* 8036C28C 7C600124 */ mtmsr r3 +/* 8036C290 4BFFFFAC */ b func_8036c23c +.size func_8036c284, . - func_8036c284 + + +.global func_8036c294 +.type func_8036c294, @function +func_8036c294: +/* 8036C294 808DC9F0 */ lwz r4, lbl_805c6810@sda21(0) +/* 8036C298 5460063E */ clrlwi r0, r3, 0x18 +/* 8036C29C 38600001 */ li r3, 0x1 +/* 8036C2A0 80840004 */ lwz r4, 4(r4) +/* 8036C2A4 7C600030 */ slw r0, r3, r0 +/* 8036C2A8 7C830038 */ and r3, r4, r0 +/* 8036C2AC 4E800020 */ blr +.size func_8036c294, . - func_8036c294 + + +.global func_8036c2b0 +.type func_8036c2b0, @function +func_8036c2b0: +/* 8036C2B0 9421FF90 */ stwu r1, -0x70(r1) +/* 8036C2B4 40860024 */ bne- cr1, lbl_8036c2d8 +/* 8036C2B8 D8210028 */ stfd f1, 0x28(r1) +/* 8036C2BC D8410030 */ stfd f2, 0x30(r1) +/* 8036C2C0 D8610038 */ stfd f3, 0x38(r1) +/* 8036C2C4 D8810040 */ stfd f4, 0x40(r1) +/* 8036C2C8 D8A10048 */ stfd f5, 0x48(r1) +/* 8036C2CC D8C10050 */ stfd f6, 0x50(r1) +/* 8036C2D0 D8E10058 */ stfd f7, 0x58(r1) +/* 8036C2D4 D9010060 */ stfd f8, 0x60(r1) +lbl_8036c2d8: +/* 8036C2D8 90610008 */ stw r3, 8(r1) +/* 8036C2DC 9081000C */ stw r4, 0xc(r1) +/* 8036C2E0 90A10010 */ stw r5, 0x10(r1) +/* 8036C2E4 90C10014 */ stw r6, 0x14(r1) +/* 8036C2E8 90E10018 */ stw r7, 0x18(r1) +/* 8036C2EC 9101001C */ stw r8, 0x1c(r1) +/* 8036C2F0 91210020 */ stw r9, 0x20(r1) +/* 8036C2F4 91410024 */ stw r10, 0x24(r1) +/* 8036C2F8 38210070 */ addi r1, r1, 0x70 +/* 8036C2FC 4E800020 */ blr +.size func_8036c2b0, . - func_8036c2b0 + |