2016-12-05 17:02:29 +00:00
|
|
|
/*
|
2022-01-09 01:15:50 +00:00
|
|
|
Copyright 2016-2022 melonDS team
|
2016-12-05 17:02:29 +00:00
|
|
|
|
|
|
|
This file is part of melonDS.
|
|
|
|
|
|
|
|
melonDS is free software: you can redistribute it and/or modify it under
|
|
|
|
the terms of the GNU General Public License as published by the Free
|
|
|
|
Software Foundation, either version 3 of the License, or (at your option)
|
|
|
|
any later version.
|
|
|
|
|
|
|
|
melonDS is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
|
|
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License along
|
|
|
|
with melonDS. If not, see http://www.gnu.org/licenses/.
|
|
|
|
*/
|
2016-05-16 15:48:40 +00:00
|
|
|
|
|
|
|
#ifndef NDS_H
|
|
|
|
#define NDS_H
|
|
|
|
|
2022-01-07 13:00:43 +00:00
|
|
|
#include <string>
|
2023-11-02 20:04:09 +00:00
|
|
|
#include <functional>
|
2022-01-07 13:00:43 +00:00
|
|
|
|
2023-08-18 20:50:57 +00:00
|
|
|
#include "Platform.h"
|
2018-09-15 00:47:34 +00:00
|
|
|
#include "Savestate.h"
|
2016-05-16 15:48:40 +00:00
|
|
|
#include "types.h"
|
|
|
|
|
2018-12-11 14:56:34 +00:00
|
|
|
// when touching the main loop/timing code, pls test a lot of shit
|
|
|
|
// with this enabled, to make sure it doesn't desync
|
|
|
|
//#define DEBUG_CHECK_DESYNC
|
|
|
|
|
2023-11-03 19:17:00 +00:00
|
|
|
class SPIHost;
|
|
|
|
|
2016-05-16 15:48:40 +00:00
|
|
|
namespace NDS
|
|
|
|
{
|
|
|
|
|
2017-01-30 17:36:11 +00:00
|
|
|
enum
|
|
|
|
{
|
2017-02-03 17:47:40 +00:00
|
|
|
Event_LCD = 0,
|
2017-04-06 17:44:34 +00:00
|
|
|
Event_SPU,
|
2017-05-01 20:27:05 +00:00
|
|
|
Event_Wifi,
|
2023-10-30 17:37:49 +00:00
|
|
|
Event_RTC,
|
2017-01-30 17:36:11 +00:00
|
|
|
|
2017-06-26 09:02:10 +00:00
|
|
|
Event_DisplayFIFO,
|
2017-04-11 18:21:31 +00:00
|
|
|
Event_ROMTransfer,
|
2017-07-15 17:29:10 +00:00
|
|
|
Event_ROMSPITransfer,
|
|
|
|
Event_SPITransfer,
|
2017-07-15 17:46:27 +00:00
|
|
|
Event_Div,
|
|
|
|
Event_Sqrt,
|
2017-04-11 18:21:31 +00:00
|
|
|
|
2019-06-18 12:12:37 +00:00
|
|
|
// DSi
|
2019-07-24 16:48:52 +00:00
|
|
|
Event_DSi_SDMMCTransfer,
|
|
|
|
Event_DSi_SDIOTransfer,
|
2019-08-04 00:16:16 +00:00
|
|
|
Event_DSi_NWifi,
|
2020-10-26 20:54:08 +00:00
|
|
|
Event_DSi_CamIRQ,
|
|
|
|
Event_DSi_CamTransfer,
|
2021-06-06 16:27:26 +00:00
|
|
|
Event_DSi_DSP,
|
2020-08-17 17:15:45 +00:00
|
|
|
|
2017-01-30 17:36:11 +00:00
|
|
|
Event_MAX
|
|
|
|
};
|
|
|
|
|
2023-11-02 20:04:09 +00:00
|
|
|
typedef std::function<void(u32)> EventFunc;
|
|
|
|
#define MemberEventFunc(cls,func) std::bind(&cls::func,this,std::placeholders::_1)
|
2017-01-31 02:54:51 +00:00
|
|
|
|
2016-12-04 02:20:50 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
IRQ_VBlank = 0,
|
|
|
|
IRQ_HBlank,
|
|
|
|
IRQ_VCount,
|
|
|
|
IRQ_Timer0,
|
|
|
|
IRQ_Timer1,
|
|
|
|
IRQ_Timer2,
|
|
|
|
IRQ_Timer3,
|
|
|
|
IRQ_RTC,
|
|
|
|
IRQ_DMA0,
|
|
|
|
IRQ_DMA1,
|
|
|
|
IRQ_DMA2,
|
|
|
|
IRQ_DMA3,
|
|
|
|
IRQ_Keypad,
|
|
|
|
IRQ_GBASlot,
|
|
|
|
IRQ_Unused14,
|
|
|
|
IRQ_Unused15,
|
|
|
|
IRQ_IPCSync,
|
|
|
|
IRQ_IPCSendDone,
|
|
|
|
IRQ_IPCRecv,
|
2021-04-24 22:48:02 +00:00
|
|
|
IRQ_CartXferDone,
|
2020-09-08 18:19:37 +00:00
|
|
|
IRQ_CartIREQMC, // IRQ triggered by game cart (example: Pokémon Typing Adventure, BT controller)
|
2016-12-04 02:20:50 +00:00
|
|
|
IRQ_GXFIFO,
|
|
|
|
IRQ_LidOpen,
|
|
|
|
IRQ_SPI,
|
2019-06-16 13:05:18 +00:00
|
|
|
IRQ_Wifi,
|
|
|
|
|
|
|
|
// DSi IRQs
|
|
|
|
IRQ_DSi_DSP = 24,
|
|
|
|
IRQ_DSi_Camera,
|
|
|
|
IRQ_DSi_Unk26,
|
|
|
|
IRQ_DSi_Unk27,
|
|
|
|
IRQ_DSi_NDMA0,
|
|
|
|
IRQ_DSi_NDMA1,
|
|
|
|
IRQ_DSi_NDMA2,
|
|
|
|
IRQ_DSi_NDMA3,
|
|
|
|
};
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
// DSi ARM7-side IE2/IF2
|
|
|
|
IRQ2_DSi_GPIO18_0 = 0,
|
|
|
|
IRQ2_DSi_GPIO18_1,
|
|
|
|
IRQ2_DSi_GPIO18_2,
|
2019-06-18 20:54:07 +00:00
|
|
|
IRQ2_DSi_Unused3,
|
2019-06-16 13:05:18 +00:00
|
|
|
IRQ2_DSi_GPIO33_0,
|
|
|
|
IRQ2_DSi_Headphone,
|
2023-04-04 10:31:58 +00:00
|
|
|
IRQ2_DSi_BPTWL,
|
2019-06-16 13:05:18 +00:00
|
|
|
IRQ2_DSi_GPIO33_3, // "sound enable input"
|
|
|
|
IRQ2_DSi_SDMMC,
|
|
|
|
IRQ2_DSi_SD_Data1,
|
|
|
|
IRQ2_DSi_SDIO,
|
|
|
|
IRQ2_DSi_SDIO_Data1,
|
|
|
|
IRQ2_DSi_AES,
|
|
|
|
IRQ2_DSi_I2C,
|
|
|
|
IRQ2_DSi_MicExt
|
2016-12-04 02:20:50 +00:00
|
|
|
};
|
|
|
|
|
2023-10-30 17:37:49 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
CPUStop_DMA9_0 = (1<<0),
|
|
|
|
CPUStop_DMA9_1 = (1<<1),
|
|
|
|
CPUStop_DMA9_2 = (1<<2),
|
|
|
|
CPUStop_DMA9_3 = (1<<3),
|
|
|
|
CPUStop_NDMA9_0 = (1<<4),
|
|
|
|
CPUStop_NDMA9_1 = (1<<5),
|
|
|
|
CPUStop_NDMA9_2 = (1<<6),
|
|
|
|
CPUStop_NDMA9_3 = (1<<7),
|
|
|
|
CPUStop_DMA9 = 0xFFF,
|
|
|
|
|
|
|
|
CPUStop_DMA7_0 = (1<<16),
|
|
|
|
CPUStop_DMA7_1 = (1<<17),
|
|
|
|
CPUStop_DMA7_2 = (1<<18),
|
|
|
|
CPUStop_DMA7_3 = (1<<19),
|
|
|
|
CPUStop_NDMA7_0 = (1<<20),
|
|
|
|
CPUStop_NDMA7_1 = (1<<21),
|
|
|
|
CPUStop_NDMA7_2 = (1<<22),
|
|
|
|
CPUStop_NDMA7_3 = (1<<23),
|
|
|
|
CPUStop_DMA7 = (0xFFF<<16),
|
|
|
|
|
|
|
|
CPUStop_Wakeup = (1<<29),
|
|
|
|
CPUStop_Sleep = (1<<30),
|
|
|
|
CPUStop_GXStall = (1<<31),
|
|
|
|
};
|
|
|
|
|
2021-01-02 10:38:06 +00:00
|
|
|
struct Timer
|
2016-12-05 16:08:24 +00:00
|
|
|
{
|
|
|
|
u16 Reload;
|
2017-01-31 02:54:51 +00:00
|
|
|
u16 Cnt;
|
|
|
|
u32 Counter;
|
|
|
|
u32 CycleShift;
|
2021-01-02 10:38:06 +00:00
|
|
|
};
|
2016-12-05 16:08:24 +00:00
|
|
|
|
2021-08-31 00:28:34 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
Mem9_ITCM = 0x00000001,
|
|
|
|
Mem9_DTCM = 0x00000002,
|
|
|
|
Mem9_BIOS = 0x00000004,
|
|
|
|
Mem9_MainRAM = 0x00000008,
|
|
|
|
Mem9_WRAM = 0x00000010,
|
|
|
|
Mem9_IO = 0x00000020,
|
|
|
|
Mem9_Pal = 0x00000040,
|
|
|
|
Mem9_OAM = 0x00000080,
|
|
|
|
Mem9_VRAM = 0x00000100,
|
|
|
|
Mem9_GBAROM = 0x00020000,
|
|
|
|
Mem9_GBARAM = 0x00040000,
|
|
|
|
|
|
|
|
Mem7_BIOS = 0x00000001,
|
|
|
|
Mem7_MainRAM = 0x00000002,
|
|
|
|
Mem7_WRAM = 0x00000004,
|
|
|
|
Mem7_IO = 0x00000008,
|
|
|
|
Mem7_Wifi0 = 0x00000010,
|
|
|
|
Mem7_Wifi1 = 0x00000020,
|
|
|
|
Mem7_VRAM = 0x00000040,
|
|
|
|
Mem7_GBAROM = 0x00000100,
|
|
|
|
Mem7_GBARAM = 0x00000200,
|
|
|
|
|
|
|
|
// TODO: add DSi regions!
|
|
|
|
};
|
|
|
|
|
2021-01-02 10:38:06 +00:00
|
|
|
struct MemRegion
|
2018-11-04 22:21:58 +00:00
|
|
|
{
|
|
|
|
u8* Mem;
|
|
|
|
u32 Mask;
|
2021-01-02 10:38:06 +00:00
|
|
|
};
|
2018-11-04 22:21:58 +00:00
|
|
|
|
2022-01-07 13:00:43 +00:00
|
|
|
// supported GBA slot addon types
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
GBAAddon_RAMExpansion = 1,
|
|
|
|
};
|
|
|
|
|
2021-11-17 22:23:22 +00:00
|
|
|
#ifdef JIT_ENABLED
|
2021-11-17 17:15:50 +00:00
|
|
|
extern bool EnableJIT;
|
2021-11-17 22:23:22 +00:00
|
|
|
#endif
|
2020-06-01 18:36:30 +00:00
|
|
|
extern int ConsoleType;
|
2020-06-14 19:04:25 +00:00
|
|
|
extern int CurCPU;
|
2020-06-01 18:36:30 +00:00
|
|
|
|
2021-08-31 00:28:34 +00:00
|
|
|
extern u8 ARM9MemTimings[0x40000][8];
|
|
|
|
extern u32 ARM9Regions[0x40000];
|
2018-12-08 21:33:41 +00:00
|
|
|
extern u8 ARM7MemTimings[0x20000][4];
|
2021-08-31 00:28:34 +00:00
|
|
|
extern u32 ARM7Regions[0x20000];
|
2018-12-04 16:54:10 +00:00
|
|
|
|
2021-01-21 20:26:27 +00:00
|
|
|
extern u32 NumFrames;
|
|
|
|
extern u32 NumLagFrames;
|
|
|
|
extern bool LagFrameFlag;
|
|
|
|
|
2019-01-05 04:28:58 +00:00
|
|
|
extern u64 ARM9Timestamp, ARM9Target;
|
|
|
|
extern u64 ARM7Timestamp, ARM7Target;
|
|
|
|
extern u32 ARM9ClockShift;
|
|
|
|
|
2016-12-06 16:32:51 +00:00
|
|
|
extern u32 IME[2];
|
2017-01-18 16:57:12 +00:00
|
|
|
extern u32 IE[2];
|
|
|
|
extern u32 IF[2];
|
2019-06-16 13:05:18 +00:00
|
|
|
extern u32 IE2;
|
|
|
|
extern u32 IF2;
|
2016-12-23 20:22:22 +00:00
|
|
|
extern Timer Timers[8];
|
|
|
|
|
2019-06-18 20:54:07 +00:00
|
|
|
extern u32 CPUStop;
|
|
|
|
|
2017-10-30 04:45:26 +00:00
|
|
|
extern u16 PowerControl9;
|
|
|
|
|
2017-01-22 19:34:59 +00:00
|
|
|
extern u16 ExMemCnt[2];
|
|
|
|
extern u8 ROMSeed0[2*8];
|
|
|
|
extern u8 ROMSeed1[2*8];
|
|
|
|
|
|
|
|
extern u8 ARM9BIOS[0x1000];
|
|
|
|
extern u8 ARM7BIOS[0x4000];
|
2019-08-05 17:52:03 +00:00
|
|
|
extern u16 ARM7BIOSProt;
|
2017-01-22 19:34:59 +00:00
|
|
|
|
2020-06-14 19:04:25 +00:00
|
|
|
extern u8* MainRAM;
|
2019-08-05 17:52:03 +00:00
|
|
|
extern u32 MainRAMMask;
|
2020-05-12 14:07:28 +00:00
|
|
|
|
2020-06-30 21:50:41 +00:00
|
|
|
const u32 MainRAMMaxSize = 0x1000000;
|
|
|
|
|
2020-06-14 19:04:25 +00:00
|
|
|
const u32 SharedWRAMSize = 0x8000;
|
|
|
|
extern u8* SharedWRAM;
|
2020-05-08 22:45:05 +00:00
|
|
|
|
2020-06-14 19:04:25 +00:00
|
|
|
extern MemRegion SWRAM_ARM9;
|
|
|
|
extern MemRegion SWRAM_ARM7;
|
2018-05-23 22:58:36 +00:00
|
|
|
|
2019-08-04 12:34:33 +00:00
|
|
|
extern u32 KeyInput;
|
2023-10-30 17:37:49 +00:00
|
|
|
extern u16 RCnt;
|
2017-04-12 14:58:09 +00:00
|
|
|
|
2023-11-03 19:17:00 +00:00
|
|
|
extern SPIHost* SPI;
|
|
|
|
|
2020-06-14 19:04:25 +00:00
|
|
|
const u32 ARM7WRAMSize = 0x10000;
|
|
|
|
extern u8* ARM7WRAM;
|
|
|
|
|
2017-02-07 21:23:46 +00:00
|
|
|
bool Init();
|
|
|
|
void DeInit();
|
2016-05-16 15:48:40 +00:00
|
|
|
void Reset();
|
2022-01-07 13:00:43 +00:00
|
|
|
void Start();
|
2023-08-18 20:50:57 +00:00
|
|
|
|
|
|
|
/// Stop the emulator.
|
|
|
|
void Stop(Platform::StopReason reason = Platform::StopReason::External);
|
2016-05-16 15:48:40 +00:00
|
|
|
|
2018-10-17 23:38:33 +00:00
|
|
|
bool DoSavestate(Savestate* file);
|
2018-09-15 00:47:34 +00:00
|
|
|
|
2021-08-31 00:28:34 +00:00
|
|
|
void SetARM9RegionTimings(u32 addrstart, u32 addrend, u32 region, int buswidth, int nonseq, int seq);
|
|
|
|
void SetARM7RegionTimings(u32 addrstart, u32 addrend, u32 region, int buswidth, int nonseq, int seq);
|
2018-12-08 21:33:41 +00:00
|
|
|
|
2020-06-01 18:36:30 +00:00
|
|
|
// 0=DS 1=DSi
|
|
|
|
void SetConsoleType(int type);
|
|
|
|
|
2017-03-29 16:59:20 +00:00
|
|
|
void LoadBIOS();
|
2023-09-18 19:09:11 +00:00
|
|
|
bool IsLoadedARM9BIOSBuiltIn();
|
|
|
|
bool IsLoadedARM7BIOSBuiltIn();
|
2022-01-07 13:00:43 +00:00
|
|
|
|
|
|
|
bool LoadCart(const u8* romdata, u32 romlen, const u8* savedata, u32 savelen);
|
|
|
|
void LoadSave(const u8* savedata, u32 savelen);
|
|
|
|
void EjectCart();
|
|
|
|
bool CartInserted();
|
|
|
|
|
|
|
|
bool NeedsDirectBoot();
|
2023-04-28 15:05:34 +00:00
|
|
|
void SetupDirectBoot(const std::string& romname);
|
2022-01-07 13:00:43 +00:00
|
|
|
|
|
|
|
bool LoadGBACart(const u8* romdata, u32 romlen, const u8* savedata, u32 savelen);
|
|
|
|
void LoadGBAAddon(int type);
|
|
|
|
void EjectGBACart();
|
2017-02-01 20:35:00 +00:00
|
|
|
|
2017-05-10 00:21:02 +00:00
|
|
|
u32 RunFrame();
|
2016-11-24 17:31:49 +00:00
|
|
|
|
2017-01-31 23:24:36 +00:00
|
|
|
void TouchScreen(u16 x, u16 y);
|
|
|
|
void ReleaseScreen();
|
2016-12-23 20:22:22 +00:00
|
|
|
|
2017-09-30 18:05:56 +00:00
|
|
|
void SetKeyMask(u32 mask);
|
|
|
|
|
2020-05-19 20:37:48 +00:00
|
|
|
bool IsLidClosed();
|
2018-12-14 01:36:57 +00:00
|
|
|
void SetLidClosed(bool closed);
|
|
|
|
|
2022-10-02 14:47:57 +00:00
|
|
|
void CamInputFrame(int cam, u32* data, int width, int height, bool rgb);
|
2018-12-12 15:33:40 +00:00
|
|
|
void MicInputFrame(s16* data, int samples);
|
|
|
|
|
2023-11-02 20:04:09 +00:00
|
|
|
void RegisterEventFunc(u32 id, u32 funcid, EventFunc func);
|
|
|
|
void UnregisterEventFunc(u32 id, u32 funcid);
|
|
|
|
void ScheduleEvent(u32 id, bool periodic, s32 delay, u32 funcid, u32 param);
|
2017-01-31 02:54:51 +00:00
|
|
|
void CancelEvent(u32 id);
|
2016-12-05 16:08:24 +00:00
|
|
|
|
2017-01-30 17:36:11 +00:00
|
|
|
void debug(u32 p);
|
|
|
|
|
2016-11-24 17:31:49 +00:00
|
|
|
void Halt();
|
|
|
|
|
2016-12-06 16:32:51 +00:00
|
|
|
void MapSharedWRAM(u8 val);
|
2016-12-03 17:29:19 +00:00
|
|
|
|
2019-06-16 13:05:18 +00:00
|
|
|
void UpdateIRQ(u32 cpu);
|
2017-03-02 23:48:26 +00:00
|
|
|
void SetIRQ(u32 cpu, u32 irq);
|
|
|
|
void ClearIRQ(u32 cpu, u32 irq);
|
2019-06-16 13:05:18 +00:00
|
|
|
void SetIRQ2(u32 irq);
|
|
|
|
void ClearIRQ2(u32 irq);
|
2016-12-06 16:32:51 +00:00
|
|
|
bool HaltInterrupted(u32 cpu);
|
2017-03-02 23:48:26 +00:00
|
|
|
void StopCPU(u32 cpu, u32 mask);
|
|
|
|
void ResumeCPU(u32 cpu, u32 mask);
|
2018-11-23 21:21:41 +00:00
|
|
|
void GXFIFOStall();
|
|
|
|
void GXFIFOUnstall();
|
2016-12-04 02:20:50 +00:00
|
|
|
|
2017-06-25 15:35:45 +00:00
|
|
|
u32 GetPC(u32 cpu);
|
2018-12-12 15:33:40 +00:00
|
|
|
u64 GetSysClockCycles(int num);
|
2018-12-12 01:48:37 +00:00
|
|
|
void NocashPrint(u32 cpu, u32 addr);
|
2017-06-25 15:35:45 +00:00
|
|
|
|
2020-02-24 17:31:44 +00:00
|
|
|
void MonitorARM9Jump(u32 addr);
|
|
|
|
|
2017-06-26 09:02:10 +00:00
|
|
|
bool DMAsInMode(u32 cpu, u32 mode);
|
2018-12-11 02:08:46 +00:00
|
|
|
bool DMAsRunning(u32 cpu);
|
2017-01-22 19:34:59 +00:00
|
|
|
void CheckDMAs(u32 cpu, u32 mode);
|
2017-03-20 21:18:35 +00:00
|
|
|
void StopDMAs(u32 cpu, u32 mode);
|
2017-01-22 19:34:59 +00:00
|
|
|
|
2019-01-05 04:28:58 +00:00
|
|
|
void RunTimers(u32 cpu);
|
2017-03-20 16:39:42 +00:00
|
|
|
|
2018-12-08 21:33:41 +00:00
|
|
|
u8 ARM9Read8(u32 addr);
|
|
|
|
u16 ARM9Read16(u32 addr);
|
|
|
|
u32 ARM9Read32(u32 addr);
|
|
|
|
void ARM9Write8(u32 addr, u8 val);
|
|
|
|
void ARM9Write16(u32 addr, u16 val);
|
|
|
|
void ARM9Write32(u32 addr, u32 val);
|
2016-11-03 00:38:58 +00:00
|
|
|
|
2018-11-04 22:21:58 +00:00
|
|
|
bool ARM9GetMemRegion(u32 addr, bool write, MemRegion* region);
|
|
|
|
|
2018-12-08 21:33:41 +00:00
|
|
|
u8 ARM7Read8(u32 addr);
|
|
|
|
u16 ARM7Read16(u32 addr);
|
|
|
|
u32 ARM7Read32(u32 addr);
|
|
|
|
void ARM7Write8(u32 addr, u8 val);
|
|
|
|
void ARM7Write16(u32 addr, u16 val);
|
|
|
|
void ARM7Write32(u32 addr, u32 val);
|
2016-05-16 15:48:40 +00:00
|
|
|
|
2018-11-04 22:21:58 +00:00
|
|
|
bool ARM7GetMemRegion(u32 addr, bool write, MemRegion* region);
|
|
|
|
|
2017-01-17 01:29:25 +00:00
|
|
|
u8 ARM9IORead8(u32 addr);
|
|
|
|
u16 ARM9IORead16(u32 addr);
|
|
|
|
u32 ARM9IORead32(u32 addr);
|
|
|
|
void ARM9IOWrite8(u32 addr, u8 val);
|
|
|
|
void ARM9IOWrite16(u32 addr, u16 val);
|
|
|
|
void ARM9IOWrite32(u32 addr, u32 val);
|
|
|
|
|
|
|
|
u8 ARM7IORead8(u32 addr);
|
|
|
|
u16 ARM7IORead16(u32 addr);
|
|
|
|
u32 ARM7IORead32(u32 addr);
|
|
|
|
void ARM7IOWrite8(u32 addr, u8 val);
|
|
|
|
void ARM7IOWrite16(u32 addr, u16 val);
|
|
|
|
void ARM7IOWrite32(u32 addr, u32 val);
|
|
|
|
|
2016-05-16 15:48:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif // NDS_H
|