mirror of
https://github.com/pret/pmd-sky.git
synced 2026-08-22 02:24:45 -05:00
move first file to src in NitroSDK
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#include "main_0207B848.h"
|
||||
#include <nitro.h>
|
||||
|
||||
asm u8 ClearIrqFlag()
|
||||
{
|
||||
@@ -2,5 +2,6 @@
|
||||
#define NITRO_H_
|
||||
|
||||
#include <nitro/types.h>
|
||||
#include <nitro/os.h>
|
||||
|
||||
#endif //NITRO_H_
|
||||
|
||||
47
lib/include/nitro/os.h
Normal file
47
lib/include/nitro/os.h
Normal file
@@ -0,0 +1,47 @@
|
||||
#ifndef NITRO_OS_H_
|
||||
#define NITRO_OS_H_
|
||||
|
||||
//#include <nitro/os/context.h>
|
||||
#include <nitro/os/system.h>
|
||||
//#include <nitro/os/systemWork.h>
|
||||
//#include <nitro/os/thread.h>
|
||||
//#include <nitro/os/mutex.h>
|
||||
//#include <nitro/os/interrupt.h>
|
||||
//#include <nitro/os/systemCall.h>
|
||||
//#include <nitro/os/spinLock.h>
|
||||
//#include <nitro/os/printf.h>
|
||||
//#include <nitro/os/init.h>
|
||||
//#include <nitro/os/exception.h>
|
||||
//#include <nitro/os/valarm.h>
|
||||
//#include <nitro/os/emulator.h>
|
||||
//#include <nitro/os/tick.h>
|
||||
//#include <nitro/os/alarm.h>
|
||||
//#include <nitro/os/ownerInfo.h>
|
||||
//#include <nitro/os/context.h>
|
||||
//#include <nitro/os/system.h>
|
||||
//#include <nitro/os/systemWork.h>
|
||||
//#include <nitro/os/thread.h>
|
||||
//#include <nitro/os/mutex.h>
|
||||
//#include <nitro/os/interrupt.h>
|
||||
//#include <nitro/os/systemCall.h>
|
||||
//#include <nitro/os/spinLock.h>
|
||||
//#include <nitro/os/printf.h>
|
||||
//#include <nitro/os/init.h>
|
||||
//#include <nitro/os/exception.h>
|
||||
//#include <nitro/os/valarm.h>
|
||||
//#include <nitro/os/emulator.h>
|
||||
//#include <nitro/os/tick.h>
|
||||
//#include <nitro/os/alarm.h>
|
||||
//#include <nitro/os/common/entropy.h>
|
||||
//#include <nitro/os/irqHandler.h>
|
||||
|
||||
//#ifdef SDK_ARM9
|
||||
//#include <nitro/os/cache.h>
|
||||
//#include <nitro/os/protectionRegion.h>
|
||||
//#include <nitro/os/protectionUnit.h>
|
||||
//#include <nitro/os/tcm.h>
|
||||
//#include <nitro/os/ARM9/vramExclusive.h>
|
||||
//#endif //SDK_ARM9
|
||||
|
||||
#endif //NITRO_OS_H_
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef PMDSKY_MAIN_0207B848_H
|
||||
#define PMDSKY_MAIN_0207B848_H
|
||||
#ifndef NITRO_OS_SYSTEM_H_
|
||||
#define NITRO_OS_SYSTEM_H_
|
||||
|
||||
// Enables processor interrupts by clearing the i flag in the program status register (cpsr).
|
||||
// return: Old value of cpsr & 0x80 (0x80 if interrupts were disabled, 0x0 if they were already enabled)
|
||||
@@ -26,4 +26,4 @@ u8 GetIrqFlag();
|
||||
// return: cpsr & 0x1f (the cpsr mode bits M4-M0)
|
||||
u8 GetProcessorMode();
|
||||
|
||||
#endif //PMDSKY_MAIN_0207B848_H
|
||||
#endif //NITRO_OS_SYSTEM_H_
|
||||
2
main.lsf
2
main.lsf
@@ -248,7 +248,7 @@ Static main
|
||||
Object lib/NitroSDK/asm/os_tick.o
|
||||
Object lib/NitroSDK/asm/os_alarm.o
|
||||
Object lib/NitroSDK/asm/os_valarm.o
|
||||
Object src/main_0207B848.o
|
||||
Object lib/NitroSDK/src/os_system.o
|
||||
Object asm/main_0207B854.o
|
||||
Object src/main_0207B860.o
|
||||
Object asm/main_0207B87C.o
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "main_02000C6C.h"
|
||||
#include "nitro/types.h"
|
||||
#include <nitro.h>
|
||||
|
||||
extern u32 _02092448;
|
||||
extern u32 _02092460;
|
||||
@@ -33,7 +33,6 @@ extern void sub_0207F3BC(u32);
|
||||
extern void sub_02008DAC();
|
||||
extern void sub_020833F8(u32);
|
||||
extern void sub_020845D8(void (*));
|
||||
extern void ClearIrqFlag(u32, u32);
|
||||
extern void Debug_Init();
|
||||
extern void Debug_Print0(u32*, u32, u32);
|
||||
extern void InitMemAllocTableVeneer();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "main_0207BC20.h"
|
||||
#include "main_0207B848.h"
|
||||
#include <nitro.h>
|
||||
|
||||
void WaitForever2(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user