src/core1: improvments and renamings on various files, added some header files
neue Datei: include/core1/eeprom.h neue Datei: include/core1/pfsmanager.h neue Datei: include/core1/ucode.h umbenannt: src/core1/code_18110.c -> src/core1/eeprom.c umbenannt: src/core1/code_10A00.c -> src/core1/pfsmanager.c umbenannt: src/core1/code_13640.c -> src/core1/stub_13640.c umbenannt: src/core1/code_1D590.c -> src/core1/stub_1D590.c umbenannt: src/core1/code_18210.c -> src/core1/ucode.c umbenannt: src/core1/code_EAF0.c -> src/core1/viewport.c
This commit is contained in:
39
src/core1/ucode.c
Normal file
39
src/core1/ucode.c
Normal file
@@ -0,0 +1,39 @@
|
||||
#include <ultra64.h>
|
||||
#include <PR/rcp.h>
|
||||
#include "core1/ucode.h"
|
||||
#include "functions.h"
|
||||
#include "variables.h"
|
||||
|
||||
#define UCODE_SIZE 256
|
||||
|
||||
static u8 sUcodeData[UCODE_SIZE];
|
||||
static s32 D_80283380;
|
||||
static s32 D_80283384;
|
||||
static s32 D_80283388;
|
||||
|
||||
void ucode_load(void) {
|
||||
D_80283384 = *(s32 *)PHYS_TO_K1(0x04000000) ^ -1;
|
||||
D_80283388 = D_80283384 ? 0x01 : 0x00;
|
||||
|
||||
D_80283380 = *(s32 *)PHYS_TO_K1(0x04001000) ^ 0x17D7;
|
||||
D_80283388 |= D_80283380 ? 0x02 : 0x00;
|
||||
|
||||
if (D_80283388 == 0) {
|
||||
piMgr_read(&sUcodeData, 0xB0000B70, UCODE_SIZE);
|
||||
}
|
||||
}
|
||||
|
||||
void ucode_stub1(void) {}
|
||||
|
||||
void ucode_stub2(void) {
|
||||
osPiReadIo(0, NULL);
|
||||
}
|
||||
|
||||
s32 ucode_stub3(void) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
void ucode_getPtrAndSize(void **ptr, u32 *size) {
|
||||
*ptr = &sUcodeData;
|
||||
*size = UCODE_SIZE;
|
||||
}
|
Reference in New Issue
Block a user