diff options
| author | Jonathan Wase <jonathan@familjenwase.se> | 2020-12-06 21:02:25 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-06 15:02:25 -0500 |
| commit | 86f892c3d31c29eb69ad231857fe83552f9d92d3 (patch) | |
| tree | 24ffaa43e9420eb284991ea048692e00a4e713af /libs/JSystem/JKernel/JKRAram.cpp | |
| parent | 819f178657d85d4b4b478a0e9026694e3edb556e (diff) | |
JKernel (#20)
* JKRDvdArchive.s split
* JKRMemArchive.s split
* JKRAramArchive.s split
* JKRCompArchive.s split
* JKRDecomp.s split
* JKRDvdRipper.s split
* JKRAramBlock.s split
* JKRAramHeap.s split
* JKRAramPiece.s split
* JKRAramStream.s split
* removed unused .s files
* JKRDvdAramRipper.s split
* JKRAram.s split
* cleanup and making vtables easier to debug
* fixed merge errors
* fixed JKRFileLoader::fetchVolumeName
Co-authored-by: Pheenoh <pheenoh@gmail.com>
Diffstat (limited to 'libs/JSystem/JKernel/JKRAram.cpp')
| -rw-r--r-- | libs/JSystem/JKernel/JKRAram.cpp | 75 |
1 files changed, 74 insertions, 1 deletions
diff --git a/libs/JSystem/JKernel/JKRAram.cpp b/libs/JSystem/JKernel/JKRAram.cpp index 4bf93c8658..e04efa172c 100644 --- a/libs/JSystem/JKernel/JKRAram.cpp +++ b/libs/JSystem/JKernel/JKRAram.cpp @@ -1 +1,74 @@ -// ok +#include "JSystem/JKernel/JKRAram/JKRAram.h" +#include "global.h" + +asm void JKRAram::create(u32, u32, long, long, long) { + nofralloc + #include "JSystem/JKernel/JKRAram/asm/func_802D1FA4.s" +} + +asm JKRAram::JKRAram(u32, u32, long) { + nofralloc + #include "JSystem/JKernel/JKRAram/asm/func_802D2040.s" +} + +asm JKRAram::~JKRAram() { + nofralloc + #include "JSystem/JKernel/JKRAram/asm/func_802D214C.s" +} + +asm void* JKRAram::run(void) { + nofralloc + #include "JSystem/JKernel/JKRAram/asm/func_802D21DC.s" +} + +asm void JKRAram::checkOkAddress(u8 *, u32, JKRAramBlock *, u32) { + nofralloc + #include "JSystem/JKernel/JKRAram/asm/func_802D2248.s" +} + +asm void JKRAram::changeGroupIdIfNeed(u8 *, int) { + nofralloc + #include "JSystem/JKernel/JKRAram/asm/func_802D22DC.s" +} + +asm void JKRAram::mainRamToAram(u8 *, u32, u32, JKRExpandSwitch, u32, JKRHeap *, int, u32 *) { + nofralloc + #include "JSystem/JKernel/JKRAram/asm/func_802D233C.s" +} + +asm void JKRAram::aramToMainRam(u32, u8 *, u32, JKRExpandSwitch, u32, JKRHeap *, int, u32 *) { + nofralloc + #include "JSystem/JKernel/JKRAram/asm/func_802D25B4.s" +} + +asm void JKRDecompressFromAramToMainRam(u32, void *, u32, u32, u32, u32 *) { + nofralloc + #include "JSystem/JKernel/JKRAram/asm/func_802D2830.s" +} + +asm void decompSZS_subroutine(u8 *, u8 *) { + nofralloc + #include "JSystem/JKernel/JKRAram/asm/func_802D29A0.s" +} + +asm void firstSrcData(void) { + nofralloc + #include "JSystem/JKernel/JKRAram/asm/func_802D2C40.s" +} + +asm void nextSrcData(u8 *) { + nofralloc + #include "JSystem/JKernel/JKRAram/asm/func_802D2CE4.s" +} + +#if 0 +asm void __sinit_JKRAram_cpp { + nofralloc + #include "JSystem/JKernel/JKRAram/asm/func_802D2DAC.s" +} + +asm JSUList<12JKRAMCommand>::~JSUList<12JKRAMCommand>(void) { + nofralloc + #include "JSystem/JKernel/JKRAram/asm/func_802D2DF0.s" +} +#endif |
