diff --git a/build/tests/AppliCooperation/CooperationA/ARM9/Makefile b/build/tests/AppliCooperation/CooperationA/ARM9/Makefile deleted file mode 100644 index 9ed68572..00000000 --- a/build/tests/AppliCooperation/CooperationA/ARM9/Makefile +++ /dev/null @@ -1,62 +0,0 @@ -#! make -f -#---------------------------------------------------------------------------- -# Project: TwlSDK - demos.TWL - nandApp - appliCooperation - cooperationA -# File: Makefile -# -# Copyright 2007 Nintendo. All rights reserved. -# -# These coded instructions, statements, and computer programs contain -# proprietary information of Nintendo of America Inc. and/or Nintendo -# Company Ltd., and are protected by Federal copyright law. They may -# not be disclosed to third parties or copied or duplicated in any form, -# in whole or in part, without the prior written consent of Nintendo. -# -# $Date:: $ -# $Rev: $ -# $Author: $ -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- - -TARGET_PLATFORM = TWL -TWL_ARCHGEN = LIMITED - -TITLEID_LO = COPA - -TARGET_BIN = CooperationA.tad - -ROM_SPEC = main.rsf - -MISC_DIR = ../../../misc -DATA_DIR = ../../../data - -SRCS = main.c CooperationA.c \ - $(MISC_DIR)/misc_simple.c \ - $(DATA_DIR)/data.c - -LINCLUDES = $(TWLSDK_ROOT)/build/demos/gx/UnitTours/DEMOLib/include \ - $(MISC_DIR) \ - $(DATA_DIR) - -LLIBRARY_DIRS += $(TWLSDK_ROOT)/build/demos/gx/UnitTours/DEMOLib/lib/$(TWL_BUILDTYPE) - -LLIBRARIES += libDEMO$(TWL_LIBSUFFIX).a - -MAKEROM_FLAGS += -F -DTITLEID_LO='$(TITLEID_LO)' - -include $(TWLSDK_ROOT)/build/buildtools/commondefs - -SDK_NMENU_DATADIR = $(ROOT)/build/tools/TwlNMenu/data -INSTALL_TARGETS = $(BINDIR)/$(TARGET_BIN) -INSTALL_DIR = $(SDK_NMENU_DATADIR) - -#---------------------------------------------------------------------------- - -do-build : $(TARGETS) - - -include $(TWLSDK_ROOT)/build/buildtools/modulerules - -#---------------------------------------------------------------------------- - -#===== End of Makefile ===== diff --git a/build/tests/AppliCooperation/CooperationA/ARM9/main.rsf b/build/tests/AppliCooperation/CooperationA/ARM9/main.rsf deleted file mode 100644 index 2f5b1192..00000000 --- a/build/tests/AppliCooperation/CooperationA/ARM9/main.rsf +++ /dev/null @@ -1,178 +0,0 @@ -#---------------------------------------------------------------------------- -# Project: TwlSDK - include -# File: ROM-BB.rsf -# -# Copyright 2007 Nintendo. All rights reserved. -# -# These coded insructions, statements, and computer programs contain -# proprietary information of Nintendo of America Inc. and/or Nintendo -# Company Ltd., and are protected by Federal copyright law. They may -# not be disclosed to third parties or copied or duplicated in any form, -# in whole or in part, without the prior written consent of Nintendo. -# -# $Date:: 2007-11-21#$ -# $Rev: 240 $ -# $Author: yosiokat $ -#---------------------------------------------------------------------------- -# -# TWL ROM SPEC FILE -# - -Arm9 -{ - Static "$(MAKEROM_ARM9:r).TWL.FLX.sbin$(COMPSUFFIX9)" - OverlayDefs "$(MAKEROM_ARM9:r)_defs.TWL.FLX.sbin$(COMPSUFFIX9)" - OverlayTable "$(MAKEROM_ARM9:r)_table.TWL.FLX.sbin$(COMPSUFFIX9)" - Elf "$(MAKEROM_ARM9:r).tef" -} - -Arm7 -{ - Static "$(MAKEROM_ARM7_BASE:r).TWL.FLX.sbin$(COMPSUFFIX7)" - OverlayDefs "$(MAKEROM_ARM7_BASE:r)_defs.TWL.FLX.sbin$(COMPSUFFIX7)" - OverlayTable "$(MAKEROM_ARM7_BASE:r)_table.TWL.FLX.sbin$(COMPSUFFIX7)" - Elf "$(MAKEROM_ARM7_BASE:r).tef" -} - -Arm9.Ltd -{ - Static "$(MAKEROM_ARM9:r).TWL.LTD.sbin$(COMPSUFFIX9)" - OverlayDefs "$(MAKEROM_ARM9:r)_defs.TWL.LTD.sbin$(COMPSUFFIX9)" - OverlayTable "$(MAKEROM_ARM9:r)_table.TWL.LTD.sbin$(COMPSUFFIX9)" -} - -Arm7.Ltd -{ - Static "$(MAKEROM_ARM7_BASE:r).TWL.LTD.sbin$(COMPSUFFIX7)" - OverlayDefs "$(MAKEROM_ARM7_BASE:r)_defs.TWL.LTD.sbin$(COMPSUFFIX7)" - OverlayTable "$(MAKEROM_ARM7_BASE:r)_table.TWL.LTD.sbin$(COMPSUFFIX7)" -} - -Property -{ - ### - ### Settings for FinalROM - ### - #### BEGIN - # - # TITLE NAME: Your product name within 12bytes - # - #TitleName "YourAppName" - - #_GameCode $(TITLEID_LO) - - # - # MAKER CODE: Your company ID# in 2 ascii words - # issued by NINTENDO - # - #MakerCode "00" - - # - # REMASTER VERSION: Mastering version - # - #RomVersion 0 - - # - # ROM SPEED TYPE: [MROM/1TROM/UNDEFINED] - # - RomSpeedType $(MAKEROM_ROMSPEED) - - # - # ROM SIZE: in bit [64M/128M/256M/512M/1G/2G] - # - #RomSize 128M - #RomSize 256M - - # - # ROM PADDING: TRUE if finalrom - # - #RomFootPadding TRUE - - # - # ROM HEADER TEMPLATE: Provided to every product by NINTENDO - # - #RomHeaderTemplate ./etc/rom_header.template.sbin - - # - # BANNER FILE: generated from Banner Spec File - # - BannerFile ../banner/banner.bnr - - ### - ### Setting for TWL - ### - # - # BANNER FILE: - # - BannerTWLFile $(TWLSDK_ROOT)/include/twl/specfiles/default.bnr - - # - # Digest parameters: - # - DigestParam 1024 32 - - # - # WRAM mapping: [MAP_BB_HYB/MAP_BB_LTD/MAP_TS_HYB/MAP_TS_LTD] - # don't have to edit - # - WramMapping $(MAKEROM_WRAM_MAPPING) - - # - # Codec mode: - # don't have to edit - # - CodecMode $(MAKEROM_CODEC_MODE) - - ### - #### END -} - - -AppendProperty -{ - # - # Publisher : "Nintendo" - # don't have to edit - Publisher Nintendo - - # - # Application type : [USER/SYSTEM] - # don't have to edit - AppType User - - # - # launch title on the launcher : [TRUE/FALSE] - # don't have to edit - Launch TRUE - - # - # Boot allowed Media: [GameCard/NAND] - # - Media NAND - - # - # GameCode for TitleID : Your GameCode in 4 ascii words - # - GameCode $(TITLEID_LO) - - # - # Public save data size: [16K/32K/64K/128K/256K/512K/1M/2M/4M/8M] - # - #PublicSaveDataSize 32K - - # - # Private save data size: [16K/32K/64K/128K/256K/512K/1M/2M/4M/8M] - # - PrivateSaveDataSize 16K - - # - # Enable SaveBannerFile - SaveBannerFile FALSE -} - - -RomSpec -{ - Offset 0x00000000 - Segment ALL -} diff --git a/build/tests/AppliCooperation/CooperationA/ARM9/src/CooperationA.c b/build/tests/AppliCooperation/CooperationA/ARM9/src/CooperationA.c deleted file mode 100644 index b82465f2..00000000 --- a/build/tests/AppliCooperation/CooperationA/ARM9/src/CooperationA.c +++ /dev/null @@ -1,502 +0,0 @@ -/*---------------------------------------------------------------------------* - Project: TwlIPL - File: CooperationA.c - - Copyright 2007 Nintendo. All rights reserved. - - These coded instructions, statements, and computer programs contain - proprietary information of Nintendo of America Inc. and/or Nintendo - Company Ltd., and are protected by Federal copyright law. They may - not be disclosed to third parties or copied or duplicated in any form, - in whole or in part, without the prior written consent of Nintendo. - - $Date:: 2007-10-31#$ - $Rev: 91 $ - $Author: yosiokat $ - *---------------------------------------------------------------------------*/ - -#include -#include "misc_simple.h" -#include "CooperationA.h" - -// define data------------------------------------------ -#define RETURN_BUTTON_TOP_X 2 -#define RETURN_BUTTON_TOP_Y 21 -#define RETURN_BUTTON_BOTTOM_X ( RETURN_BUTTON_TOP_X + 8 ) -#define RETURN_BUTTON_BOTTOM_Y ( RETURN_BUTTON_TOP_Y + 2 ) - -// ソフトウェアキーボードLCD領域 -#define CLIST_LT_X 2 -#define CLIST_LT_Y 6 - -#define CLIST_MARGIN 2 -#define CLIST_KEY_PER_SEGMENT 5 -#define CLIST_SEGMENT_INTERVAL 1 - -#define COPA_MENU_ELEMENT_NUM 3 // メニューの項目数 -#define CHAR_LIST_CHAR_NUM 120 -#define CHAR_LIST_MODE_NUM 1 -// 特殊キーコード -#define EOM_ (char)0xf8 -#define CODE_BUTTON_TOP_ (char)0xf9 -#define DEL_BUTTON_ (char)0xf9 -#define SPACE_BUTTON_ (char)0xfa -#define VAR_BUTTON1_ (char)0xfb -#define VAR_BUTTON2_ (char)0xfc -#define OK_BUTTON_ (char)0xfd -#define CANCEL_BUTTON_ (char)0xfe -#define CODE_BUTTON_BOTTOM_ (char)0xff - -#define CHAR_USCORE '_' -#define KEY_PER_LINE 11 - -#define KEY_START 98 //ソフトウェアキーのカーソルデフォルト位置はキャンセルキー - -#define PARAM_LENGTH 10 - -typedef struct CopA_Work -{ - u16 csr; - int char_mode; - u16 key_csr; - char parameter[ PARAM_LENGTH + 1 ]; - char temp_parameter[ PARAM_LENGTH + 1 ]; - u8 temp_parameter_length; - void(*pNowProcess)(void); - int starx,stary; -} CopA_Work; - -// extern data------------------------------------------ - -// function's prototype declaration--------------------- - -static void MenuScene( void ); - -// global variable ------------------------------------- - -// static variable ------------------------------------- - -static CopA_Work s_work = (CopA_Work){0,0,0,"","",0,0,0}; - -static char a_or_c = 'A'; - -// const data ----------------------------------------- -static const char char_tbl[CHAR_LIST_MODE_NUM][CHAR_LIST_CHAR_NUM]; - -static const char *s_pStrMenu[ COPA_MENU_ELEMENT_NUM ] = -{ - "Set Parameter", - "Launch CooperationB", - "Return to Launcher", -}; - -static MenuPos s_menuPos[] = { - { TRUE, 3, 6 }, - { TRUE, 3, 8 }, - { TRUE, 3, 10 }, - { TRUE, 3, 12 }, -}; - -static const MenuParam s_menuParam = { - COPA_MENU_ELEMENT_NUM, - TXT_COLOR_BLACK, - TXT_COLOR_GREEN, - TXT_COLOR_RED, - &s_menuPos[ 0 ], - (const char **)&s_pStrMenu, -}; - -static const char *str_button_char[CHAR_LIST_MODE_NUM] = { - "eisuu", - }; - -//static u16 next_char_mode[CHAR_LIST_MODE_NUM-1]; - -static const char str_button_del[] = "DEL"; -static const char str_button_space[] = "SPACE"; -static const char str_button_ok[] = "OK"; -static const char str_button_cancel[] = "CANCEL"; - -static const char *str_button[] = { - (const char *)str_button_del, - (const char *)str_button_space, - NULL, - NULL, - (const char *)str_button_ok, - (const char *)str_button_cancel, - }; - -//====================================================== -// アプリ連携テストプログラムA -//====================================================== - -static void SetSoftKeyboardButton(int mode) -{ -/* - int l; - int count = 0; - for(l=0; l= CODE_BUTTON_TOP_) && (code < CODE_BUTTON_BOTTOM_) ) - { - int x = code - CODE_BUTTON_TOP_; - myDp_Printf( CLIST_LT_X + CLIST_MARGIN*(l%KEY_PER_LINE) + CLIST_SEGMENT_INTERVAL*((l%KEY_PER_LINE)/CLIST_KEY_PER_SEGMENT) , - CLIST_LT_Y + CLIST_MARGIN*(l/KEY_PER_LINE) , color, MAIN_SCREEN, str_button[x] ); - } - else - { - char s[2]; - s[0] = code; - s[1] = 0; - myDp_Printf( CLIST_LT_X + CLIST_MARGIN*(l%KEY_PER_LINE) + CLIST_SEGMENT_INTERVAL*((l%KEY_PER_LINE)/CLIST_KEY_PER_SEGMENT) , - CLIST_LT_Y + CLIST_MARGIN*(l/KEY_PER_LINE) , color, MAIN_SCREEN, s ); - } - } - } -} - -// 一文字削除 -static void DeleteACharacter( void ) -{ - char *buf; - u8 *length; - buf = s_work.temp_parameter; - length = &s_work.temp_parameter_length; - - if(*length > 0) buf[--(*length)] = CHAR_USCORE; -} - -static void MenuInit( void ) -{ - GX_DispOff(); - GXS_DispOff(); - - myDp_Printf( 1, 0, TXT_COLOR_BLUE, MAIN_SCREEN, "Cooperation%c", a_or_c); - - GXS_SetVisiblePlane( GX_PLANEMASK_BG0 ); - - s_work.pNowProcess = MenuScene; - - GX_DispOn(); - GXS_DispOn(); -} - -// 選択中文字キー・特殊キーで決定した時の挙動 -static void PushKeys( char code ) -{ - char *buf; - u8 *length; - u16 max_length; - buf = s_work.temp_parameter; - length = &s_work.temp_parameter_length; - max_length = PARAM_LENGTH; - - if( (code >= CODE_BUTTON_TOP_) && (code < CODE_BUTTON_BOTTOM_) ) - { - // 特殊キー - switch(code) - { - case VAR_BUTTON1_: - case VAR_BUTTON2_: -// SetSoftKeyboardButton(next_char_mode[code - VAR_BUTTON1_]); - break; - case DEL_BUTTON_: - DeleteACharacter(); - break; - case SPACE_BUTTON_: - if(*length < max_length) buf[(*length)++] = ' '; - break; - case OK_BUTTON_: - MI_CpuClear8(buf + *length, (u32)(max_length - *length));// ゼロクリア - MI_CpuCopy8(buf, s_work.parameter, (PARAM_LENGTH+1)); - // セーブ後にキャンセル処理と合流 - case CANCEL_BUTTON_: - MenuInit(); - break; - default:// unknown code - break; - } - } - else - { - // 普通キー - if(*length < max_length) buf[(*length)++] = code; - } -} - -// ソフトウェアキー上でのキーパッド及びタッチパッド処理 -// 先にReadTPしておくこと。 -static void PadDetectOnKey( void ) -{ - //-------------------------------------- - // キー入力処理 - //-------------------------------------- - if( MYPAD_IS_TRIG(PAD_KEY_RIGHT) ){ // カーソルの移動 - do - { - if(s_work.key_csr%KEY_PER_LINE != KEY_PER_LINE-1) s_work.key_csr++; - else s_work.key_csr -= KEY_PER_LINE-1; - if( s_work.key_csr == CHAR_LIST_CHAR_NUM ) s_work.key_csr -= s_work.key_csr%KEY_PER_LINE; - } - while(char_tbl[s_work.char_mode][s_work.key_csr]==EOM_); - } - if( MYPAD_IS_TRIG(PAD_KEY_LEFT) ){ - do - { - if(s_work.key_csr%KEY_PER_LINE != 0) s_work.key_csr--; - else s_work.key_csr += KEY_PER_LINE-1; - if( s_work.key_csr & 0x8000 ) s_work.key_csr = KEY_PER_LINE-1; - } - while(char_tbl[s_work.char_mode][s_work.key_csr]==EOM_); - } - if( MYPAD_IS_TRIG(PAD_KEY_DOWN) ){ // カーソルの移動 - do - { - s_work.key_csr += KEY_PER_LINE; - if( s_work.key_csr >= CHAR_LIST_CHAR_NUM ) s_work.key_csr -= KEY_PER_LINE*(s_work.key_csr/KEY_PER_LINE); - } - while(char_tbl[s_work.char_mode][s_work.key_csr]==EOM_); - } - if( MYPAD_IS_TRIG(PAD_KEY_UP) ){ - do - { - if( s_work.key_csr < KEY_PER_LINE ) s_work.key_csr += (CHAR_LIST_CHAR_NUM/KEY_PER_LINE)*KEY_PER_LINE; - else s_work.key_csr -= KEY_PER_LINE; - if( s_work.key_csr >= CHAR_LIST_CHAR_NUM ) s_work.key_csr -= KEY_PER_LINE; - } - while(char_tbl[s_work.char_mode][s_work.key_csr]==EOM_); - } - - - if( MYPAD_IS_TRIG(PAD_BUTTON_A) ) { // キーが押された - PushKeys( char_tbl[s_work.char_mode][s_work.key_csr] ); - }else if( MYPAD_IS_TRIG(PAD_BUTTON_B) ) { - DeleteACharacter(); - } -} - -// パラメータ編集画面の描画処理 -static void DrawSetParameterScene( void ) -{ - myDp_Printf( 1, 0, TXT_COLOR_BLUE, MAIN_SCREEN, "PARAMETER" ); - myDp_Printf( 11, 3, TXT_COLOR_BLACK, MAIN_SCREEN, s_work.temp_parameter ); - DrawCharKeys(); -} - -// パラメータ編集の初期化 -static void SetParameterInit( void ) -{ - SetSoftKeyboardButton(0); - s_work.key_csr = KEY_START; - - // パラメータ用テンポラリバッファの初期化 - MI_CpuCopy8(s_work.parameter, s_work.temp_parameter, (PARAM_LENGTH+1)); - s_work.temp_parameter_length = (u8)STD_GetStringLength( s_work.temp_parameter ); - if( s_work.temp_parameter_length < PARAM_LENGTH ) { - MI_CpuFill8( &s_work.temp_parameter[ s_work.temp_parameter_length ], CHAR_USCORE, (u32)(PARAM_LENGTH - s_work.temp_parameter_length) ); - } - - DrawSetParameterScene(); - - GX_SetVisiblePlane ( GX_PLANEMASK_BG0 ); - GXS_SetVisiblePlane( GX_PLANEMASK_BG0 ); -} - -// パラメータ編集メイン -static void SetParameterMain( void ) -{ - PadDetectOnKey(); - - // 描画処理 - DrawSetParameterScene(); -} - -static void DrawMenuScene( void ) -{ - myDp_Printf( 1, 0, TXT_COLOR_BLUE, MAIN_SCREEN, "Cooperation%c", a_or_c); - myDp_Printf( 19 , 6, TXT_COLOR_DARKLIGHTBLUE, MAIN_SCREEN, s_work.parameter ); - // メニュー項目 - myDp_DrawMenu( s_work.csr, MAIN_SCREEN, &s_menuParam ); - myDp_Printf( 1, 20, TXT_COLOR_BLACK, MAIN_SCREEN, "'%c' pos = (%d,%d)", (a_or_c=='A' ? '*' : '$'), s_work.starx, s_work.stary); - myDp_Printf( s_work.starx, s_work.stary, TXT_COLOR_RED, MAIN_SCREEN, (a_or_c=='A' ? "*" : "$")); -} - -static void MenuScene(void) -{ - LauncherBootFlags tempflag = {TRUE, LAUNCHER_BOOTTYPE_NAND, TRUE, FALSE, FALSE, FALSE, 0}; - - //-------------------------------------- - // キー入力処理 - //-------------------------------------- - if( MYPAD_IS_TRIG(PAD_KEY_DOWN) ){ // カーソルの移動 - if( ++s_work.csr == COPA_MENU_ELEMENT_NUM ) { - s_work.csr=0; - } - if( ++s_work.stary == 24) - { - s_work.stary = 0; - } - } - if( MYPAD_IS_TRIG(PAD_KEY_UP) ){ - if( --s_work.csr & 0x80 ) { - s_work.csr=COPA_MENU_ELEMENT_NUM - 1; - } - if( --s_work.stary == -1) - { - s_work.stary = 23; - } - } - if( MYPAD_IS_TRIG(PAD_KEY_LEFT) ){ // カーソルの移動 - if( --s_work.starx == -1) - { - s_work.starx = 31; - } - } - if( MYPAD_IS_TRIG(PAD_KEY_RIGHT) ){ - if( ++s_work.starx == 32) - { - s_work.starx = 0; - } - } - - DrawMenuScene(); - - if( MYPAD_IS_TRIG(PAD_BUTTON_A)) { // メニュー項目への分岐 - if( s_menuPos[ s_work.csr ].enable ) { - switch( s_work.csr ) { - case 0: - SetParameterInit(); - s_work.pNowProcess = SetParameterMain; - break; - case 1: - // 現在のアプリ状態をセーブ - { - FSFile f; - FS_InitFile(&f); - if(!FS_SetCurrentDirectory("dataPrv:/")) {MI_CpuCopy8("W Error 1",s_work.parameter,10); break;} - FS_CreateFile("test.dat", FS_PERMIT_R | FS_PERMIT_W ); - if(!FS_OpenFileEx(&f, "test.dat", FS_FILEMODE_W)) {MI_CpuCopy8("W Error 2",s_work.parameter,10); break;} - if(-1 == FS_WriteFile(&f, &s_work, sizeof(s_work))) {MI_CpuCopy8("W Error 3",s_work.parameter,10); break;} - if(!FS_CloseFile( &f )) {MI_CpuCopy8("W Error 4",s_work.parameter,10); break;} - } - // アプリ間パラメータをセット - { - u16 *maker_code_src_addr = (u16 *)(HW_TWL_ROM_HEADER_BUF + 0x10); - u32 *game_code_src_addr = (u32 *)(HW_TWL_ROM_HEADER_BUF + 0xc); - u64 *title_id_src_addr = (u64 *)(HW_TWL_ROM_HEADER_BUF + 0x230); - // アプリ間パラメータの初期化 - OS_InitArgBufferForDelivery( OS_DELIVER_ARG_BUFFER_SIZE ); - // validフラグを立てる - OS_SetValidDeliveryArgumentInfo( TRUE ); - // メーカーコードとゲームコードのセット - OS_SetMakerCodeToDeliveryArgumentInfo( *maker_code_src_addr ); - OS_SetGameCodeToDeliveryArgumentInfo( *game_code_src_addr ); - OS_SetTitleIdToDeliveryArgumentInfo( *title_id_src_addr ); - // アプリ専用引数のセット - OS_SetDeliveryArgments( (const char *)s_work.parameter ); - } - //B起動 - OS_SetLauncherParamAndResetHardware( 0, 0x00030004434f5042, &tempflag ); - break; - case 2: - OS_SetLauncherParamAndResetHardware( 0, NULL, &tempflag ); - //再起動 - break; - } - } - } -} - -// 初期化 -void CooperationAInit( void ) -{ - s_work.parameter[0] = 0; - - a_or_c = *((char *)(HW_TWL_ROM_HEADER_BUF + 0x230));// title_IDの最下位を格納 - - MenuInit(); - FS_Init(3); - - { - if( OS_IsValidDeliveryArgumentInfo() ) - { - OS_DecodeDeliveryBuffer(); - if(STD_CompareNString((const char *)OS_GetArgv(1), "-r", 3) == 0) - { - // セーブしたデータから復帰 - FSFile f; - FS_InitFile(&f); - if(!FS_SetCurrentDirectory("dataPrv:/")) {MI_CpuCopy8("R Error 1",s_work.parameter,10); return;} - if(!FS_OpenFileEx(&f, "test.dat", FS_FILEMODE_R)) {return;} - if(-1 == FS_ReadFile(&f, &s_work, sizeof(s_work))) {MI_CpuCopy8("R Error 2",s_work.parameter,10); return;} - if(!FS_CloseFile( &f )) {MI_CpuCopy8("R Error 3",s_work.parameter,10); return;} - } - } - } -} - -// メインループ -void CooperationAMain(void) -{ - s_work.pNowProcess(); -} - - -//====================================================== -// ソフトウェアキーボード用キャラテーブル -//====================================================== - -static const char char_tbl[CHAR_LIST_MODE_NUM][CHAR_LIST_CHAR_NUM] = { - { // 英数 - 'A', 'B', 'C', 'D', 'E', - 'F', 'G', 'H', 'I', 'J', DEL_BUTTON_, - 'K', 'L', 'M', 'N', 'O', - 'P', 'Q', 'R', 'S', 'T', SPACE_BUTTON_, - 'U', 'V', 'W', 'X', 'Y', - 'Z', EOM_, EOM_, EOM_, EOM_, EOM_, - - 'a', 'b', 'c', 'd', 'e', - 'f', 'g', 'h', 'i', 'j', EOM_, - 'k', 'l', 'm', 'n', 'o', - 'p', 'q', 'r', 's', 't', EOM_, - 'u', 'v', 'w', 'x', 'y', - 'z', EOM_, EOM_, EOM_, EOM_, EOM_, - - '0', '1', '2', '3', '4', - '5', '6', '7', '8', '9', EOM_, - '!', EOM_, '&', EOM_, '/', - ',', EOM_, '.', EOM_, '-', OK_BUTTON_, - '\'', EOM_, '"', EOM_, EOM_, - '@', EOM_, '(', EOM_, ')', CANCEL_BUTTON_, - - EOM_, EOM_, EOM_, EOM_, EOM_, - EOM_, EOM_, EOM_, EOM_, EOM_, EOM_, - EOM_, EOM_, EOM_, EOM_, EOM_, - EOM_, EOM_, EOM_, EOM_, EOM_, - }, -}; \ No newline at end of file diff --git a/build/tests/AppliCooperation/CooperationA/ARM9/src/CooperationA.h b/build/tests/AppliCooperation/CooperationA/ARM9/src/CooperationA.h deleted file mode 100644 index 160f0fb9..00000000 --- a/build/tests/AppliCooperation/CooperationA/ARM9/src/CooperationA.h +++ /dev/null @@ -1,37 +0,0 @@ -/*---------------------------------------------------------------------------* - Project: TwlIPL - File: CooperationA.h - - Copyright 2007 Nintendo. All rights reserved. - - These coded instructions, statements, and computer programs contain - proprietary information of Nintendo of America Inc. and/or Nintendo - Company Ltd., and are protected by Federal copyright law. They may - not be disclosed to third parties or copied or duplicated in any form, - in whole or in part, without the prior written consent of Nintendo. - - $Date:: 2007-10-30#$ - $Rev: 73 $ - $Author: yosiokat $ - *---------------------------------------------------------------------------*/ - -#ifndef __COOPERATION_A_H__ -#define __COOPERATION_A_H__ - -#ifdef __cplusplus -extern "C" { -#endif - - -#include - -// define data---------------------------------------------------------- - -void CooperationAInit( void ); -void CooperationAMain( void ); - -#ifdef __cplusplus -} -#endif - -#endif // __COOPERATION_A_H__ diff --git a/build/tests/AppliCooperation/CooperationA/ARM9/src/main.c b/build/tests/AppliCooperation/CooperationA/ARM9/src/main.c deleted file mode 100644 index c92cd26c..00000000 --- a/build/tests/AppliCooperation/CooperationA/ARM9/src/main.c +++ /dev/null @@ -1,68 +0,0 @@ -/*---------------------------------------------------------------------------* - Project: TwlIPL - File: main.c - - Copyright 2007 Nintendo. All rights reserved. - - These coded instructions, statements, and computer programs contain - proprietary information of Nintendo of America Inc. and/or Nintendo - Company Ltd., and are protected by Federal copyright law. They may - not be disclosed to third parties or copied or duplicated in any form, - in whole or in part, without the prior written consent of Nintendo. - - $Date:: 2007-11-27#$ - $Rev: 272 $ - $Author: yosiokat $ - *---------------------------------------------------------------------------*/ - -#include -#include "misc_simple.h" -#include "CooperationA.h" - -// extern data----------------------------------------------------------------- - -// define data----------------------------------------------------------------- - -// function's prototype------------------------------------------------------- -static void INTR_VBlank( void ); - -// global variable------------------------------------------------------------- - -// static variable------------------------------------------------------------- -BOOL g_isValidTSD; - -// const data------------------------------------------------------------------ - - -// ============================================================================ -// function's description -// ============================================================================ -void TwlMain(void) -{ - myInit(); - - CooperationAInit(); - // メインループ---------------------------- - while(1){ - - myPreMain(); - - CooperationAMain(); - - myProMain(); - - OS_WaitIrq(1, OS_IE_V_BLANK); // Vブランク割り込み待ち - } -} - - -// ============================================================================ -// 割り込み処理 -// ============================================================================ - -// Vブランク割り込み -static void INTR_VBlank(void) -{ - OS_SetIrqCheckFlag(OS_IE_V_BLANK); // Vブランク割込チェックのセット -} - diff --git a/build/tests/AppliCooperation/CooperationA/Makefile b/build/tests/AppliCooperation/CooperationA/Makefile deleted file mode 100644 index b9a231a1..00000000 --- a/build/tests/AppliCooperation/CooperationA/Makefile +++ /dev/null @@ -1,30 +0,0 @@ -#! make -f -#---------------------------------------------------------------------------- -# Project: TwlSDK - demos.TWL - nandApp - appliCooperation - cooperationA -# File: Makefile -# -# Copyright 2007 Nintendo. All rights reserved. -# -# These coded instructions, statements, and computer programs contain -# proprietary information of Nintendo of America Inc. and/or Nintendo -# Company Ltd., and are protected by Federal copyright law. They may -# not be disclosed to third parties or copied or duplicated in any form, -# in whole or in part, without the prior written consent of Nintendo. -# -# $Date:: $ -# $Rev: $ -# $Author: $ -#---------------------------------------------------------------------------- - -include $(TWLSDK_ROOT)/build/buildtools/commondefs - -#---------------------------------------------------------------------------- - -SUBDIRS = banner ARM9 - -#---------------------------------------------------------------------------- - -include $(TWLSDK_ROOT)/build/buildtools/modulerules - - -#===== End of Makefile ===== diff --git a/build/tests/AppliCooperation/CooperationA/banner/Makefile b/build/tests/AppliCooperation/CooperationA/banner/Makefile deleted file mode 100644 index aafe44c2..00000000 --- a/build/tests/AppliCooperation/CooperationA/banner/Makefile +++ /dev/null @@ -1,50 +0,0 @@ -#! make -f -#---------------------------------------------------------------------------- -# Project: TwlIPL -# File: Makefile -# -# Copyright 2007 Nintendo. All rights reserved. -# -# These coded instructions, statements, and computer programs contain -# proprietary information of Nintendo of America Inc. and/or Nintendo -# Company Ltd., and are protected by Federal copyright law. They may -# not be disclosed to third parties or copied or duplicated in any form, -# in whole or in part, without the prior written consent of Nintendo. -# -# $Date:: 2007-10-03#$ -# $Rev: 1319 $ -# $Author: kitase_hirotake $ -#---------------------------------------------------------------------------- - -include $(TWLSDK_ROOT)/build/buildtools/commondefs -MAKEBANNER = $(TWL_TOOLSDIR)/bin/makebanner.TWL.exe - -ICON_DIR = ./icon - -BANNER_ICON = $(ICON_DIR)/gameIcon.bmp -BANNER_SPEC = banner_v3.bsf - -TARGETS = banner.bnr -INSTALL_DIR = ./ -INSTALL_TARGETS = $(TARGETS) - -BANNER_ICON_NAME = $(basename $(BANNER_ICON)) - -LDIRT_CLEAN = $(TARGETS) \ - $(BANNER_ICON_NAME).nbfs \ - $(BANNER_ICON_NAME).nbfc \ - $(BANNER_ICON_NAME).nbfp \ - $(TARGETS:.bnr=.srl) - -include $(TWLSDK_ROOT)/build/buildtools/modulerules - -#---------------------------------------------------------------------------- -# build -#---------------------------------------------------------------------------- -do-build: $(TARGETS) - -$(TARGETS): $(BANNER_SPEC) $(BANNER_ICON) - $(NTEXCONV) -no -bg -bgb -bgnc $(BANNER_ICON) >/dev/null && \ - $(MAKEBANNER) -d -N $(BANNER_ICON_NAME) $(BANNER_SPEC) $(TARGETS) - -# diff --git a/build/tests/AppliCooperation/CooperationA/banner/banner_v3.bsf b/build/tests/AppliCooperation/CooperationA/banner/banner_v3.bsf deleted file mode 100644 index abd490d1..00000000 Binary files a/build/tests/AppliCooperation/CooperationA/banner/banner_v3.bsf and /dev/null differ diff --git a/build/tests/AppliCooperation/CooperationA/banner/icon/gameIcon.bmp b/build/tests/AppliCooperation/CooperationA/banner/icon/gameIcon.bmp deleted file mode 100644 index 4837ffe0..00000000 Binary files a/build/tests/AppliCooperation/CooperationA/banner/icon/gameIcon.bmp and /dev/null differ diff --git a/build/tests/AppliCooperation/CooperationB/ARM9/Makefile b/build/tests/AppliCooperation/CooperationB/ARM9/Makefile deleted file mode 100644 index c3882c59..00000000 --- a/build/tests/AppliCooperation/CooperationB/ARM9/Makefile +++ /dev/null @@ -1,62 +0,0 @@ -#! make -f -#---------------------------------------------------------------------------- -# Project: TwlSDK - demos.TWL - nandApp - AppliCooperation - CooperationB -# File: Makefile -# -# Copyright 2007 Nintendo. All rights reserved. -# -# These coded instructions, statements, and computer programs contain -# proprietary information of Nintendo of America Inc. and/or Nintendo -# Company Ltd., and are protected by Federal copyright law. They may -# not be disclosed to third parties or copied or duplicated in any form, -# in whole or in part, without the prior written consent of Nintendo. -# -# $Date:: $ -# $Rev: $ -# $Author: $ -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- - -TARGET_PLATFORM = TWL -TWL_ARCHGEN = LIMITED - -TITLEID_LO = COPB - -TARGET_BIN = CooperationB.tad - -ROM_SPEC = main.rsf - -MISC_DIR = ../../../misc -DATA_DIR = ../../../data - -SRCS = main.c CooperationB.c \ - $(MISC_DIR)/misc_simple.c \ - $(DATA_DIR)/data.c - -LINCLUDES = $(TWLSDK_ROOT)/build/demos/gx/UnitTours/DEMOLib/include \ - $(MISC_DIR) \ - $(DATA_DIR) - -LLIBRARY_DIRS += $(TWLSDK_ROOT)/build/demos/gx/UnitTours/DEMOLib/lib/$(TWL_BUILDTYPE) - -LLIBRARIES += libDEMO$(TWL_LIBSUFFIX).a - -MAKEROM_FLAGS += -F -DTITLEID_LO='$(TITLEID_LO)' - -include $(TWLSDK_ROOT)/build/buildtools/commondefs - -SDK_NMENU_DATADIR = $(ROOT)/build/tools/TwlNMenu/data -INSTALL_TARGETS = $(BINDIR)/$(TARGET_BIN) -INSTALL_DIR = $(SDK_NMENU_DATADIR) - -#---------------------------------------------------------------------------- - -do-build : $(TARGETS) - - -include $(TWLSDK_ROOT)/build/buildtools/modulerules - -#---------------------------------------------------------------------------- - -#===== End of Makefile ===== diff --git a/build/tests/AppliCooperation/CooperationB/ARM9/main.rsf b/build/tests/AppliCooperation/CooperationB/ARM9/main.rsf deleted file mode 100644 index fa4fb30a..00000000 --- a/build/tests/AppliCooperation/CooperationB/ARM9/main.rsf +++ /dev/null @@ -1,178 +0,0 @@ -#---------------------------------------------------------------------------- -# Project: TwlSDK - include -# File: ROM-BB.rsf -# -# Copyright 2007 Nintendo. All rights reserved. -# -# These coded insructions, statements, and computer programs contain -# proprietary information of Nintendo of America Inc. and/or Nintendo -# Company Ltd., and are protected by Federal copyright law. They may -# not be disclosed to third parties or copied or duplicated in any form, -# in whole or in part, without the prior written consent of Nintendo. -# -# $Date:: 2007-11-21#$ -# $Rev: 240 $ -# $Author: yosiokat $ -#---------------------------------------------------------------------------- -# -# TWL ROM SPEC FILE -# - -Arm9 -{ - Static "$(MAKEROM_ARM9:r).TWL.FLX.sbin$(COMPSUFFIX9)" - OverlayDefs "$(MAKEROM_ARM9:r)_defs.TWL.FLX.sbin$(COMPSUFFIX9)" - OverlayTable "$(MAKEROM_ARM9:r)_table.TWL.FLX.sbin$(COMPSUFFIX9)" - Elf "$(MAKEROM_ARM9:r).tef" -} - -Arm7 -{ - Static "$(MAKEROM_ARM7_BASE:r).TWL.FLX.sbin$(COMPSUFFIX7)" - OverlayDefs "$(MAKEROM_ARM7_BASE:r)_defs.TWL.FLX.sbin$(COMPSUFFIX7)" - OverlayTable "$(MAKEROM_ARM7_BASE:r)_table.TWL.FLX.sbin$(COMPSUFFIX7)" - Elf "$(MAKEROM_ARM7_BASE:r).tef" -} - -Arm9.Ltd -{ - Static "$(MAKEROM_ARM9:r).TWL.LTD.sbin$(COMPSUFFIX9)" - OverlayDefs "$(MAKEROM_ARM9:r)_defs.TWL.LTD.sbin$(COMPSUFFIX9)" - OverlayTable "$(MAKEROM_ARM9:r)_table.TWL.LTD.sbin$(COMPSUFFIX9)" -} - -Arm7.Ltd -{ - Static "$(MAKEROM_ARM7_BASE:r).TWL.LTD.sbin$(COMPSUFFIX7)" - OverlayDefs "$(MAKEROM_ARM7_BASE:r)_defs.TWL.LTD.sbin$(COMPSUFFIX7)" - OverlayTable "$(MAKEROM_ARM7_BASE:r)_table.TWL.LTD.sbin$(COMPSUFFIX7)" -} - -Property -{ - ### - ### Settings for FinalROM - ### - #### BEGIN - # - # TITLE NAME: Your product name within 12bytes - # - #TitleName "YourAppName" - - #_GameCode $(TITLEID_LO) - - # - # MAKER CODE: Your company ID# in 2 ascii words - # issued by NINTENDO - # - #MakerCode "00" - - # - # REMASTER VERSION: Mastering version - # - #RomVersion 0 - - # - # ROM SPEED TYPE: [MROM/1TROM/UNDEFINED] - # - RomSpeedType $(MAKEROM_ROMSPEED) - - # - # ROM SIZE: in bit [64M/128M/256M/512M/1G/2G] - # - #RomSize 128M - #RomSize 256M - - # - # ROM PADDING: TRUE if finalrom - # - #RomFootPadding TRUE - - # - # ROM HEADER TEMPLATE: Provided to every product by NINTENDO - # - #RomHeaderTemplate ./etc/rom_header.template.sbin - - # - # BANNER FILE: generated from Banner Spec File - # - BannerFile ../banner/banner.bnr - - ### - ### Setting for TWL - ### - # - # BANNER FILE: - # - BannerTWLFile $(TWLSDK_ROOT)/include/twl/specfiles/default.bnr - - # - # Digest parameters: - # - DigestParam 1024 32 - - # - # WRAM mapping: [MAP_BB_HYB/MAP_BB_LTD/MAP_TS_HYB/MAP_TS_LTD] - # don't have to edit - # - WramMapping $(MAKEROM_WRAM_MAPPING) - - # - # Codec mode: - # don't have to edit - # - CodecMode $(MAKEROM_CODEC_MODE) - - ### - #### END -} - - -AppendProperty -{ - # - # Publisher : "Nintendo" - # don't have to edit - Publisher Nintendo - - # - # Application type : [USER/SYSTEM] - # don't have to edit - AppType User - - # - # launch title on the launcher : [TRUE/FALSE] - # don't have to edit - Launch TRUE - - # - # Boot allowed Media: [GameCard/NAND] - # - Media NAND - - # - # GameCode for TitleID : Your GameCode in 4 ascii words - # - GameCode $(TITLEID_LO) - - # - # Public save data size: [16K/32K/64K/128K/256K/512K/1M/2M/4M/8M] - # - #PublicSaveDataSize 32K - - # - # Private save data size: [16K/32K/64K/128K/256K/512K/1M/2M/4M/8M] - # - #PrivateSaveDataSize 16K - - # - # Enable SaveBannerFile - SaveBannerFile FALSE -} - - -RomSpec -{ - Offset 0x00000000 - Segment ALL -} diff --git a/build/tests/AppliCooperation/CooperationB/ARM9/src/CooperationB.c b/build/tests/AppliCooperation/CooperationB/ARM9/src/CooperationB.c deleted file mode 100644 index 29d2466b..00000000 --- a/build/tests/AppliCooperation/CooperationB/ARM9/src/CooperationB.c +++ /dev/null @@ -1,175 +0,0 @@ -/*---------------------------------------------------------------------------* - Project: TwlIPL - File: CooperationB.c - - Copyright 2007 Nintendo. All rights reserved. - - These coded instructions, statements, and computer programs contain - proprietary information of Nintendo of America Inc. and/or Nintendo - Company Ltd., and are protected by Federal copyright law. They may - not be disclosed to third parties or copied or duplicated in any form, - in whole or in part, without the prior written consent of Nintendo. - - $Date:: 2007-10-31#$ - $Rev: 91 $ - $Author: yosiokat $ - *---------------------------------------------------------------------------*/ - -#include -#include "misc_simple.h" -#include "CooperationB.h" - -// define data------------------------------------------ -#define COPB_MENU_ELEMENT_NUM 2 // メニューの項目数 - -#define PARAM_LENGTH 10 - -// extern data------------------------------------------ - -// function's prototype declaration--------------------- - -static void MenuScene( void ); - -// global variable ------------------------------------- - -// static variable ------------------------------------- -static u16 s_csr = 0; -static char s_parameter[ PARAM_LENGTH + 1 ]; -static void(*s_pNowProcess)(void); - -// const data ----------------------------------------- -static const char *s_pStrMenu[ COPB_MENU_ELEMENT_NUM ] = -{ - "Launch Former App", - "Return to Launcher", -}; - -static MenuPos s_menuPos[] = { - { FALSE, 3, 6 }, - { TRUE, 3, 8 }, -}; - -static const MenuParam s_menuParam = { - COPB_MENU_ELEMENT_NUM, - TXT_COLOR_BLACK, - TXT_COLOR_GREEN, - TXT_COLOR_RED, - &s_menuPos[ 0 ], - (const char **)&s_pStrMenu, -}; - -//====================================================== -// アプリ連携テストプログラムB -//====================================================== - -static void DrawMenuScene( void ) -{ - myDp_Printf( 1, 0, TXT_COLOR_BLUE, MAIN_SCREEN, "CooperationB"); - myDp_Printf( 1, 18, TXT_COLOR_BLACK, MAIN_SCREEN, "Received Paramater:"); - myDp_Printf( 3 , 19, TXT_COLOR_DARKLIGHTBLUE, MAIN_SCREEN, s_parameter ); - myDp_Printf( 1, 14, TXT_COLOR_BLACK, MAIN_SCREEN, "Former App:"); - myDp_Printf(3, 15, TXT_COLOR_BLACK, MAIN_SCREEN, "0x%llx",OS_IsValidDeliveryArgumentInfo() ? OS_GetTitleIdFromDeliveryArgumentInfo() : 0x0); - // メニュー項目 - myDp_DrawMenu( s_csr, MAIN_SCREEN, &s_menuParam ); -} - -static void MenuInit( void ) -{ - GX_DispOff(); - GXS_DispOff(); - - myDp_Printf( 1, 0, TXT_COLOR_BLUE, MAIN_SCREEN, "CooperationB"); - - GXS_SetVisiblePlane( GX_PLANEMASK_BG0 ); - - s_pNowProcess = MenuScene; - - MI_CpuClear8(s_parameter, (PARAM_LENGTH+1)); - - { - if( OS_IsValidDeliveryArgumentInfo() ) - { - s_menuPos[ 0 ].enable = TRUE; - OS_DecodeDeliveryBuffer(); - if(OS_GetArgv(1) != NULL) - { - MI_CpuCopy8(OS_GetArgv(1), s_parameter, (PARAM_LENGTH+1)); - } - else - { - s_parameter[0] = '\0'; - } - } - } - - DrawMenuScene(); - - GX_DispOn(); - GXS_DispOn(); -} - -static void MenuScene(void) -{ - LauncherBootFlags tempflag = {TRUE, LAUNCHER_BOOTTYPE_NAND, TRUE, FALSE, FALSE, FALSE, 0}; - - //-------------------------------------- - // キー入力処理 - //-------------------------------------- - if( MYPAD_IS_TRIG(PAD_KEY_DOWN) ){ // カーソルの移動 - if( ++s_csr == COPB_MENU_ELEMENT_NUM ) { - s_csr=0; - } - } - if( MYPAD_IS_TRIG(PAD_KEY_UP) ){ - if( --s_csr & 0x80 ) { - s_csr=COPB_MENU_ELEMENT_NUM - 1; - } - } - - DrawMenuScene(); - - if( MYPAD_IS_TRIG(PAD_BUTTON_A) ) { // メニュー項目への分岐 - if( s_menuPos[ s_csr ].enable ) { - switch( s_csr ) { - case 0: - if(OS_IsValidDeliveryArgumentInfo()) - { - u16 *maker_code_src_addr = (u16 *)(HW_TWL_ROM_HEADER_BUF + 0x10); - u32 *game_code_src_addr = (u32 *)(HW_TWL_ROM_HEADER_BUF + 0xc); - u64 targetApp = OS_GetTitleIdFromDeliveryArgumentInfo(); - // アプリ間パラメータの初期化 - OS_InitArgBufferForDelivery( OS_DELIVER_ARG_BUFFER_SIZE ); - // validフラグを立てる - OS_SetValidDeliveryArgumentInfo( TRUE ); - // メーカーコードとゲームコードのセット(Launcher側でやるべき?) - OS_SetMakerCodeToDeliveryArgumentInfo( *maker_code_src_addr ); - OS_SetGameCodeToDeliveryArgumentInfo( *game_code_src_addr ); - OS_SetTitleIdToDeliveryArgumentInfo( 0x00030004434f5042 ); - // アプリ専用引数のセット - OS_SetDeliveryArgments( "-r" ); - - //呼び出し元アプリ起動 - OS_SetLauncherParamAndResetHardware( 0, targetApp, &tempflag ); - } - break; - case 1: - OS_SetLauncherParamAndResetHardware( 0, NULL, &tempflag ); - //再起動 - break; - } - } - } -} - -// 初期化 -void CooperationBInit( void ) -{ - s_parameter[0] = 0; - MenuInit(); -} - -// メインループ -void CooperationBMain(void) -{ - s_pNowProcess(); -} diff --git a/build/tests/AppliCooperation/CooperationB/ARM9/src/CooperationB.h b/build/tests/AppliCooperation/CooperationB/ARM9/src/CooperationB.h deleted file mode 100644 index 88002c24..00000000 --- a/build/tests/AppliCooperation/CooperationB/ARM9/src/CooperationB.h +++ /dev/null @@ -1,37 +0,0 @@ -/*---------------------------------------------------------------------------* - Project: TwlIPL - File: CooperationB.h - - Copyright 2007 Nintendo. All rights reserved. - - These coded instructions, statements, and computer programs contain - proprietary information of Nintendo of America Inc. and/or Nintendo - Company Ltd., and are protected by Federal copyright law. They may - not be disclosed to third parties or copied or duplicated in any form, - in whole or in part, without the prior written consent of Nintendo. - - $Date:: 2007-10-30#$ - $Rev: 73 $ - $Author: yosiokat $ - *---------------------------------------------------------------------------*/ - -#ifndef __COOPERATION_B_H__ -#define __COOPERATION_B_H__ - -#ifdef __cplusplus -extern "C" { -#endif - - -#include - -// define data---------------------------------------------------------- - -void CooperationBInit( void ); -void CooperationBMain( void ); - -#ifdef __cplusplus -} -#endif - -#endif // __COOPERATION_B_H__ diff --git a/build/tests/AppliCooperation/CooperationB/ARM9/src/main.c b/build/tests/AppliCooperation/CooperationB/ARM9/src/main.c deleted file mode 100644 index e9267dc1..00000000 --- a/build/tests/AppliCooperation/CooperationB/ARM9/src/main.c +++ /dev/null @@ -1,68 +0,0 @@ -/*---------------------------------------------------------------------------* - Project: TwlIPL - File: main.c - - Copyright 2007 Nintendo. All rights reserved. - - These coded instructions, statements, and computer programs contain - proprietary information of Nintendo of America Inc. and/or Nintendo - Company Ltd., and are protected by Federal copyright law. They may - not be disclosed to third parties or copied or duplicated in any form, - in whole or in part, without the prior written consent of Nintendo. - - $Date:: 2007-11-27#$ - $Rev: 272 $ - $Author: yosiokat $ - *---------------------------------------------------------------------------*/ - -#include -#include "misc_simple.h" -#include "CooperationB.h" - -// extern data----------------------------------------------------------------- - -// define data----------------------------------------------------------------- - -// function's prototype------------------------------------------------------- -static void INTR_VBlank( void ); - -// global variable------------------------------------------------------------- - -// static variable------------------------------------------------------------- -BOOL g_isValidTSD; - -// const data------------------------------------------------------------------ - - -// ============================================================================ -// function's description -// ============================================================================ -void TwlMain(void) -{ - myInit(); - - CooperationBInit(); - // メインループ---------------------------- - while(1){ - - myPreMain(); - - CooperationBMain(); - - myProMain(); - - OS_WaitIrq(1, OS_IE_V_BLANK); // Vブランク割り込み待ち - } -} - - -// ============================================================================ -// 割り込み処理 -// ============================================================================ - -// Vブランク割り込み -static void INTR_VBlank(void) -{ - OS_SetIrqCheckFlag(OS_IE_V_BLANK); // Vブランク割込チェックのセット -} - diff --git a/build/tests/AppliCooperation/CooperationB/Makefile b/build/tests/AppliCooperation/CooperationB/Makefile deleted file mode 100644 index 9cf34e12..00000000 --- a/build/tests/AppliCooperation/CooperationB/Makefile +++ /dev/null @@ -1,30 +0,0 @@ -#! make -f -#---------------------------------------------------------------------------- -# Project: TwlIPL -# File: Makefile -# -# Copyright 2007 Nintendo. All rights reserved. -# -# These coded instructions, statements, and computer programs contain -# proprietary information of Nintendo of America Inc. and/or Nintendo -# Company Ltd., and are protected by Federal copyright law. They may -# not be disclosed to third parties or copied or duplicated in any form, -# in whole or in part, without the prior written consent of Nintendo. -# -# $Date:: 2007-10-03#$ -# $Rev: 1319 $ -# $Author: kitase_hirotake $ -#---------------------------------------------------------------------------- - -include $(TWLSDK_ROOT)/build/buildtools/commondefs - -#---------------------------------------------------------------------------- - -SUBDIRS = banner ARM9 - -#---------------------------------------------------------------------------- - -include $(TWLSDK_ROOT)/build/buildtools/modulerules - - -#===== End of Makefile ===== diff --git a/build/tests/AppliCooperation/CooperationB/banner/Makefile b/build/tests/AppliCooperation/CooperationB/banner/Makefile deleted file mode 100644 index aafe44c2..00000000 --- a/build/tests/AppliCooperation/CooperationB/banner/Makefile +++ /dev/null @@ -1,50 +0,0 @@ -#! make -f -#---------------------------------------------------------------------------- -# Project: TwlIPL -# File: Makefile -# -# Copyright 2007 Nintendo. All rights reserved. -# -# These coded instructions, statements, and computer programs contain -# proprietary information of Nintendo of America Inc. and/or Nintendo -# Company Ltd., and are protected by Federal copyright law. They may -# not be disclosed to third parties or copied or duplicated in any form, -# in whole or in part, without the prior written consent of Nintendo. -# -# $Date:: 2007-10-03#$ -# $Rev: 1319 $ -# $Author: kitase_hirotake $ -#---------------------------------------------------------------------------- - -include $(TWLSDK_ROOT)/build/buildtools/commondefs -MAKEBANNER = $(TWL_TOOLSDIR)/bin/makebanner.TWL.exe - -ICON_DIR = ./icon - -BANNER_ICON = $(ICON_DIR)/gameIcon.bmp -BANNER_SPEC = banner_v3.bsf - -TARGETS = banner.bnr -INSTALL_DIR = ./ -INSTALL_TARGETS = $(TARGETS) - -BANNER_ICON_NAME = $(basename $(BANNER_ICON)) - -LDIRT_CLEAN = $(TARGETS) \ - $(BANNER_ICON_NAME).nbfs \ - $(BANNER_ICON_NAME).nbfc \ - $(BANNER_ICON_NAME).nbfp \ - $(TARGETS:.bnr=.srl) - -include $(TWLSDK_ROOT)/build/buildtools/modulerules - -#---------------------------------------------------------------------------- -# build -#---------------------------------------------------------------------------- -do-build: $(TARGETS) - -$(TARGETS): $(BANNER_SPEC) $(BANNER_ICON) - $(NTEXCONV) -no -bg -bgb -bgnc $(BANNER_ICON) >/dev/null && \ - $(MAKEBANNER) -d -N $(BANNER_ICON_NAME) $(BANNER_SPEC) $(TARGETS) - -# diff --git a/build/tests/AppliCooperation/CooperationB/banner/banner_v3.bsf b/build/tests/AppliCooperation/CooperationB/banner/banner_v3.bsf deleted file mode 100644 index 8513828c..00000000 Binary files a/build/tests/AppliCooperation/CooperationB/banner/banner_v3.bsf and /dev/null differ diff --git a/build/tests/AppliCooperation/CooperationB/banner/icon/gameIcon.bmp b/build/tests/AppliCooperation/CooperationB/banner/icon/gameIcon.bmp deleted file mode 100644 index d2c5448f..00000000 Binary files a/build/tests/AppliCooperation/CooperationB/banner/icon/gameIcon.bmp and /dev/null differ diff --git a/build/tests/AppliCooperation/CooperationC/ARM9/Makefile b/build/tests/AppliCooperation/CooperationC/ARM9/Makefile deleted file mode 100644 index e001cc54..00000000 --- a/build/tests/AppliCooperation/CooperationC/ARM9/Makefile +++ /dev/null @@ -1,64 +0,0 @@ -#! make -f -#---------------------------------------------------------------------------- -# Project: TwlSDK - demos.TWL - nandApp - AppliCooperation - CooperationC -# File: Makefile -# -# Copyright 2007 Nintendo. All rights reserved. -# -# These coded instructions, statements, and computer programs contain -# proprietary information of Nintendo of America Inc. and/or Nintendo -# Company Ltd., and are protected by Federal copyright law. They may -# not be disclosed to third parties or copied or duplicated in any form, -# in whole or in part, without the prior written consent of Nintendo. -# -# $Date:: $ -# $Rev: $ -# $Author: $ -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- - -TARGET_PLATFORM = TWL -TWL_ARCHGEN = LIMITED - -TITLEID_LO = COPC - -TARGET_BIN = CooperationC.tad - -ROM_SPEC = main.rsf - -A_SRC_DIR = ../../CooperationA/ARM9/src -MISC_DIR = ../../../misc -DATA_DIR = ../../../data - -SRCS = $(A_SRC_DIR)/main.c $(A_SRC_DIR)/CooperationA.c \ - $(MISC_DIR)/misc_simple.c \ - $(DATA_DIR)/data.c - -LINCLUDES = $(TWLSDK_ROOT)/build/demos/gx/UnitTours/DEMOLib/include \ - $(A_SRC_DIR) \ - $(MISC_DIR) \ - $(DATA_DIR) - -LLIBRARY_DIRS += $(TWLSDK_ROOT)/build/demos/gx/UnitTours/DEMOLib/lib/$(TWL_BUILDTYPE) - -LLIBRARIES += libDEMO$(TWL_LIBSUFFIX).a - -MAKEROM_FLAGS += -F -DTITLEID_LO='$(TITLEID_LO)' - -include $(TWLSDK_ROOT)/build/buildtools/commondefs - -SDK_NMENU_DATADIR = $(ROOT)/build/tools/TwlNMenu/data -INSTALL_TARGETS = $(BINDIR)/$(TARGET_BIN) -INSTALL_DIR = $(SDK_NMENU_DATADIR) - -#---------------------------------------------------------------------------- - -do-build : $(TARGETS) - - -include $(TWLSDK_ROOT)/build/buildtools/modulerules - -#---------------------------------------------------------------------------- - -#===== End of Makefile ===== diff --git a/build/tests/AppliCooperation/CooperationC/ARM9/main.rsf b/build/tests/AppliCooperation/CooperationC/ARM9/main.rsf deleted file mode 100644 index 2f5b1192..00000000 --- a/build/tests/AppliCooperation/CooperationC/ARM9/main.rsf +++ /dev/null @@ -1,178 +0,0 @@ -#---------------------------------------------------------------------------- -# Project: TwlSDK - include -# File: ROM-BB.rsf -# -# Copyright 2007 Nintendo. All rights reserved. -# -# These coded insructions, statements, and computer programs contain -# proprietary information of Nintendo of America Inc. and/or Nintendo -# Company Ltd., and are protected by Federal copyright law. They may -# not be disclosed to third parties or copied or duplicated in any form, -# in whole or in part, without the prior written consent of Nintendo. -# -# $Date:: 2007-11-21#$ -# $Rev: 240 $ -# $Author: yosiokat $ -#---------------------------------------------------------------------------- -# -# TWL ROM SPEC FILE -# - -Arm9 -{ - Static "$(MAKEROM_ARM9:r).TWL.FLX.sbin$(COMPSUFFIX9)" - OverlayDefs "$(MAKEROM_ARM9:r)_defs.TWL.FLX.sbin$(COMPSUFFIX9)" - OverlayTable "$(MAKEROM_ARM9:r)_table.TWL.FLX.sbin$(COMPSUFFIX9)" - Elf "$(MAKEROM_ARM9:r).tef" -} - -Arm7 -{ - Static "$(MAKEROM_ARM7_BASE:r).TWL.FLX.sbin$(COMPSUFFIX7)" - OverlayDefs "$(MAKEROM_ARM7_BASE:r)_defs.TWL.FLX.sbin$(COMPSUFFIX7)" - OverlayTable "$(MAKEROM_ARM7_BASE:r)_table.TWL.FLX.sbin$(COMPSUFFIX7)" - Elf "$(MAKEROM_ARM7_BASE:r).tef" -} - -Arm9.Ltd -{ - Static "$(MAKEROM_ARM9:r).TWL.LTD.sbin$(COMPSUFFIX9)" - OverlayDefs "$(MAKEROM_ARM9:r)_defs.TWL.LTD.sbin$(COMPSUFFIX9)" - OverlayTable "$(MAKEROM_ARM9:r)_table.TWL.LTD.sbin$(COMPSUFFIX9)" -} - -Arm7.Ltd -{ - Static "$(MAKEROM_ARM7_BASE:r).TWL.LTD.sbin$(COMPSUFFIX7)" - OverlayDefs "$(MAKEROM_ARM7_BASE:r)_defs.TWL.LTD.sbin$(COMPSUFFIX7)" - OverlayTable "$(MAKEROM_ARM7_BASE:r)_table.TWL.LTD.sbin$(COMPSUFFIX7)" -} - -Property -{ - ### - ### Settings for FinalROM - ### - #### BEGIN - # - # TITLE NAME: Your product name within 12bytes - # - #TitleName "YourAppName" - - #_GameCode $(TITLEID_LO) - - # - # MAKER CODE: Your company ID# in 2 ascii words - # issued by NINTENDO - # - #MakerCode "00" - - # - # REMASTER VERSION: Mastering version - # - #RomVersion 0 - - # - # ROM SPEED TYPE: [MROM/1TROM/UNDEFINED] - # - RomSpeedType $(MAKEROM_ROMSPEED) - - # - # ROM SIZE: in bit [64M/128M/256M/512M/1G/2G] - # - #RomSize 128M - #RomSize 256M - - # - # ROM PADDING: TRUE if finalrom - # - #RomFootPadding TRUE - - # - # ROM HEADER TEMPLATE: Provided to every product by NINTENDO - # - #RomHeaderTemplate ./etc/rom_header.template.sbin - - # - # BANNER FILE: generated from Banner Spec File - # - BannerFile ../banner/banner.bnr - - ### - ### Setting for TWL - ### - # - # BANNER FILE: - # - BannerTWLFile $(TWLSDK_ROOT)/include/twl/specfiles/default.bnr - - # - # Digest parameters: - # - DigestParam 1024 32 - - # - # WRAM mapping: [MAP_BB_HYB/MAP_BB_LTD/MAP_TS_HYB/MAP_TS_LTD] - # don't have to edit - # - WramMapping $(MAKEROM_WRAM_MAPPING) - - # - # Codec mode: - # don't have to edit - # - CodecMode $(MAKEROM_CODEC_MODE) - - ### - #### END -} - - -AppendProperty -{ - # - # Publisher : "Nintendo" - # don't have to edit - Publisher Nintendo - - # - # Application type : [USER/SYSTEM] - # don't have to edit - AppType User - - # - # launch title on the launcher : [TRUE/FALSE] - # don't have to edit - Launch TRUE - - # - # Boot allowed Media: [GameCard/NAND] - # - Media NAND - - # - # GameCode for TitleID : Your GameCode in 4 ascii words - # - GameCode $(TITLEID_LO) - - # - # Public save data size: [16K/32K/64K/128K/256K/512K/1M/2M/4M/8M] - # - #PublicSaveDataSize 32K - - # - # Private save data size: [16K/32K/64K/128K/256K/512K/1M/2M/4M/8M] - # - PrivateSaveDataSize 16K - - # - # Enable SaveBannerFile - SaveBannerFile FALSE -} - - -RomSpec -{ - Offset 0x00000000 - Segment ALL -} diff --git a/build/tests/AppliCooperation/CooperationC/Makefile b/build/tests/AppliCooperation/CooperationC/Makefile deleted file mode 100644 index 9cf34e12..00000000 --- a/build/tests/AppliCooperation/CooperationC/Makefile +++ /dev/null @@ -1,30 +0,0 @@ -#! make -f -#---------------------------------------------------------------------------- -# Project: TwlIPL -# File: Makefile -# -# Copyright 2007 Nintendo. All rights reserved. -# -# These coded instructions, statements, and computer programs contain -# proprietary information of Nintendo of America Inc. and/or Nintendo -# Company Ltd., and are protected by Federal copyright law. They may -# not be disclosed to third parties or copied or duplicated in any form, -# in whole or in part, without the prior written consent of Nintendo. -# -# $Date:: 2007-10-03#$ -# $Rev: 1319 $ -# $Author: kitase_hirotake $ -#---------------------------------------------------------------------------- - -include $(TWLSDK_ROOT)/build/buildtools/commondefs - -#---------------------------------------------------------------------------- - -SUBDIRS = banner ARM9 - -#---------------------------------------------------------------------------- - -include $(TWLSDK_ROOT)/build/buildtools/modulerules - - -#===== End of Makefile ===== diff --git a/build/tests/AppliCooperation/CooperationC/banner/Makefile b/build/tests/AppliCooperation/CooperationC/banner/Makefile deleted file mode 100644 index aafe44c2..00000000 --- a/build/tests/AppliCooperation/CooperationC/banner/Makefile +++ /dev/null @@ -1,50 +0,0 @@ -#! make -f -#---------------------------------------------------------------------------- -# Project: TwlIPL -# File: Makefile -# -# Copyright 2007 Nintendo. All rights reserved. -# -# These coded instructions, statements, and computer programs contain -# proprietary information of Nintendo of America Inc. and/or Nintendo -# Company Ltd., and are protected by Federal copyright law. They may -# not be disclosed to third parties or copied or duplicated in any form, -# in whole or in part, without the prior written consent of Nintendo. -# -# $Date:: 2007-10-03#$ -# $Rev: 1319 $ -# $Author: kitase_hirotake $ -#---------------------------------------------------------------------------- - -include $(TWLSDK_ROOT)/build/buildtools/commondefs -MAKEBANNER = $(TWL_TOOLSDIR)/bin/makebanner.TWL.exe - -ICON_DIR = ./icon - -BANNER_ICON = $(ICON_DIR)/gameIcon.bmp -BANNER_SPEC = banner_v3.bsf - -TARGETS = banner.bnr -INSTALL_DIR = ./ -INSTALL_TARGETS = $(TARGETS) - -BANNER_ICON_NAME = $(basename $(BANNER_ICON)) - -LDIRT_CLEAN = $(TARGETS) \ - $(BANNER_ICON_NAME).nbfs \ - $(BANNER_ICON_NAME).nbfc \ - $(BANNER_ICON_NAME).nbfp \ - $(TARGETS:.bnr=.srl) - -include $(TWLSDK_ROOT)/build/buildtools/modulerules - -#---------------------------------------------------------------------------- -# build -#---------------------------------------------------------------------------- -do-build: $(TARGETS) - -$(TARGETS): $(BANNER_SPEC) $(BANNER_ICON) - $(NTEXCONV) -no -bg -bgb -bgnc $(BANNER_ICON) >/dev/null && \ - $(MAKEBANNER) -d -N $(BANNER_ICON_NAME) $(BANNER_SPEC) $(TARGETS) - -# diff --git a/build/tests/AppliCooperation/CooperationC/banner/banner_v3.bsf b/build/tests/AppliCooperation/CooperationC/banner/banner_v3.bsf deleted file mode 100644 index 44d1726f..00000000 Binary files a/build/tests/AppliCooperation/CooperationC/banner/banner_v3.bsf and /dev/null differ diff --git a/build/tests/AppliCooperation/CooperationC/banner/icon/gameIcon.bmp b/build/tests/AppliCooperation/CooperationC/banner/icon/gameIcon.bmp deleted file mode 100644 index 0d8cd7c4..00000000 Binary files a/build/tests/AppliCooperation/CooperationC/banner/icon/gameIcon.bmp and /dev/null differ diff --git a/build/tests/AppliCooperation/Makefile b/build/tests/AppliCooperation/Makefile deleted file mode 100644 index b640c858..00000000 --- a/build/tests/AppliCooperation/Makefile +++ /dev/null @@ -1,30 +0,0 @@ -#! make -f -#---------------------------------------------------------------------------- -# Project: TwlSDK - demos.TWL - nandApp - appliCooperation -# File: Makefile -# -# Copyright 2007 Nintendo. All rights reserved. -# -# These coded instructions, statements, and computer programs contain -# proprietary information of Nintendo of America Inc. and/or Nintendo -# Company Ltd., and are protected by Federal copyright law. They may -# not be disclosed to third parties or copied or duplicated in any form, -# in whole or in part, without the prior written consent of Nintendo. -# -# $Date:: $ -# $Rev: $ -# $Author: $ -#---------------------------------------------------------------------------- - -include $(TWLSDK_ROOT)/build/buildtools/commondefs - -#---------------------------------------------------------------------------- - -SUBDIRS = CooperationA CooperationB CooperationC - -#---------------------------------------------------------------------------- - -include $(TWLSDK_ROOT)/build/buildtools/modulerules - - -#===== End of Makefile ===== diff --git a/build/tests/ExecPreLoadedApp/ARM7/Makefile b/build/tests/ExecPreLoadedApp/ARM7/Makefile deleted file mode 100644 index ebc1205b..00000000 --- a/build/tests/ExecPreLoadedApp/ARM7/Makefile +++ /dev/null @@ -1,98 +0,0 @@ -#! make -f -#---------------------------------------------------------------------------- -# Project: TwlSDK - components - racoon.TWL -# File: Makefile -# -# Copyright 2007 Nintendo. All rights reserved. -# -# These coded instructions, statements, and computer programs contain -# proprietary information of Nintendo of America Inc. and/or Nintendo -# Company Ltd., and are protected by Federal copyright law. They may -# not be disclosed to third parties or copied or duplicated in any form, -# in whole or in part, without the prior written consent of Nintendo. -# -# $Date:: 2007-11-30#$ -# $Rev: 2778 $ -# $Author: terui $ -#---------------------------------------------------------------------------- - -override TARGET_PLATFORM = TWL -override TWL_PROC = ARM7 -override TWL_ARCHGEN = LIMITED -TWL_NO_STD_PCHDR = True -TWL_CODEGEN ?= ALL - -#---------------------------------------------------------------------------- - -SRCDIR = $(ROOT)/build/components/mongoose.TWL/src - -SRCS = main.c - -TARGET_NAME = my_racoon - -TARGET_NEF = $(TARGET_NAME).tef -LCFILE_SPEC = $(TARGET_NAME).lsf -LCFILE_TEMPLATE = $(TARGET_NAME).lcf.template -LDRES_TEMPLATE = $(TARGET_NAME).response.template - -CRT0_O = crt0.LTD.TWL.o - -#---------------------------------------------------------------------------- -include $(TWLSDK_ROOT)/build/buildtools/commondefs - -ifdef TWLSDK_NOCRYPTO -CCFLAGS += -DSDK_NOCRYPTO -endif - -ifndef TWLSDK_NOCRYPTO -MAKELCF_FLAGS += -DUSE_CRYPTO_LIBS='libaes_sp$(TWL_LIBSUFFIX).a' -endif - -#MACRO_FLAGS += -DSDK_ARM7COMP_LTD - -ifeq ($(TWL_PLATFORM),BB) -MAKELCF_FLAGS += -DADDRESS_LTDWRAM='0x037e0000' -else -MAKELCF_FLAGS += -DADDRESS_LTDWRAM='0x037c0000' -endif - -MAKELCF_FLAGS += -DISDBG_LIBS_TWL='$(if $(ISDBG_LIBS_TWL),$(ISDBG_LIBS_TWL),libstubsistd_sp$(TWL_LIBSUFFIX).a)' \ - -DISDBG_LIBS_NITRO='libstubsisd_sp$(TWL_LIBSUFFIX).a' - - -#-------------------------------- -# install target -#-------------------------------- -INSTALL_TARGETS = $(BINDIR)/$(TARGET_NAME).tef \ - $(BINDIR)/$(TARGET_NAME).TWL.FLX.sbin \ - $(BINDIR)/$(TARGET_NAME)_defs.TWL.FLX.sbin \ - $(BINDIR)/$(TARGET_NAME).TWL.LTD.sbin \ - $(BINDIR)/$(TARGET_NAME)_defs.TWL.LTD.sbin - -INSTALL_DIR = $(TWL_INSTALL_COMPONENTSDIR)/$(TARGET_NAME)/$(TWL_BUILDTYPE) - -LINCLUDES = $(ROOT)/build/libraries/spi/ARM7/include -#LLIBRARIES += libwl_sp.TWL.LTD.a libsdio_hcd_twl$(TWL_LIBSUFFIX).a libsdio_busdriver$(TWL_LIBSUFFIX).a libsdio_lib$(TWL_LIBSUFFIX).a libARM7athdrv$(TWL_LIBSUFFIX).a -LLIBRARIES += libwl_sp.TWL.LTD.a -#LLIBRARIES += libwl_sp$(TWL_LIBSUFFIX).a \ -# libcdc_sp$(TWL_LIBSUFFIX).a \ -# libtpex_sp$(TWL_LIBSUFFIX).a \ -# libmicex_sp$(TWL_LIBSUFFIX).a \ -# libsdio_hcd_twl$(TWL_LIBSUFFIX).a \ -# libsdio_busdriver$(TWL_LIBSUFFIX).a \ -# libsdio_lib$(TWL_LIBSUFFIX).a \ -# librompatch_sp$(TWL_LIBSUFFIX).a \ -# libARM7athdrv$(TWL_LIBSUFFIX).a - -LDEPENDS_NEF = $(TWL_LIBS) $(LLIBRARIES) - -do-build: $(TARGETS) - -#---------------------------------------------------------------------------- -include $(TWLSDK_ROOT)/build/buildtools/modulerules - -#===== End of Makefile ===== - -include $(TWLSDK_ROOT)/build/buildtools/modulerules - -#===== End of Makefile ===== diff --git a/build/tests/ExecPreLoadedApp/ARM7/my_racoon.lcf.template b/build/tests/ExecPreLoadedApp/ARM7/my_racoon.lcf.template deleted file mode 100644 index 85a5f503..00000000 --- a/build/tests/ExecPreLoadedApp/ARM7/my_racoon.lcf.template +++ /dev/null @@ -1,915 +0,0 @@ -#--------------------------------------------------------------------------- -# Project: TwlSDK - components - racoon.TWL -# File: racoon.lcf.template -# -# Copyright 2007 Nintendo. All rights reserved. -# -# These coded instructions, statements, and computer programs contain -# proprietary information of Nintendo of America Inc. and/or Nintendo -# Company Ltd., and are protected by Federal copyright law. They may -# not be disclosed to third parties or copied or duplicated in any form, -# in whole or in part, without the prior written consent of Nintendo. -# -# $Date:: 2007-11-12#$ -# $Rev: 2249 $ -# $Author: terui $ -#--------------------------------------------------------------------------- -MEMORY -{ - (RWX) : ORIGIN = , LENGTH = 0x0 > - - - (RWX) : ORIGIN = , LENGTH = 0x0 >> - - binary.AUTOLOAD_INFO (RWX) : ORIGIN = 0, LENGTH = 0x0 >> - binary.STATIC_FOOTER (RWX) : ORIGIN = 0, LENGTH = 0x0 >> - - F (RW) : ORIGIN = 0, LENGTH = 0x0 > - F (RW) : ORIGIN = 0, LENGTH = 0x0 > - - (RWXO): ORIGIN = , LENGTH = 0x0 > - - - check.WORKRAM (RWX) : ORIGIN = 0x037c0000, LENGTH = 0x50000 > workram.check - - binary.LTDAUTOLOAD_TOP (RW) : ORIGIN = 0, LENGTH = 0x0 > - - (RWX) : ORIGIN = , LENGTH = 0x0 >> - - binary.LTDAUTOLOAD_INFO (RWX) : ORIGIN = 0, LENGTH = 0x0 >> - - L (RW) : ORIGIN = 0, LENGTH = 0x0 > - L (RW) : ORIGIN = 0, LENGTH = 0x0 > - - (RWXO): ORIGIN = , LENGTH = 0x0 > - - - check.LTDMAIN (RWX) : ORIGIN = 0x02f88000, LENGTH = 0x74000 > ltdmain.check -} - -KEEP_SECTION -{ - .sinit -} - -SECTIONS -{ - ############################ STATIC ################################# - .: - { - ALIGNALL(4); - . = ALIGN(4); - - # - # Definition to refer overlay segment, when same name symbols exist in multiple overlays. - # - - SEARCH_SYMBOL ; - - - # - # TEXT BLOCK: READ ONLY - # - SDK_STATIC_START =.; - SDK_STATIC_TEXT_START =.; - #:::::::::: text/rodata - OBJECT(_start,*) - - - - - - - - - - - - - - - - - - - . = ALIGN(4); - SDK_STATIC_SINIT_START =.; - #:::::::::: ctor - - - - - - - - - - - - - WRITEW 0; - #:::::::::: ctor - SDK_STATIC_SINIT_END =.; - #:::::::::: text/rodata - SDK_STATIC_TEXT_END =.; - - # - # DATA BLOCK: READ WRITE - # - . = ALIGN(4); - SDK_STATIC_DATA_START =.; - #:::::::::: data - - - - - - - - - - - - - #:::::::::: data - SDK_STATIC_DATA_END =.; - . = ALIGN(4); - SDK_STATIC_END =.; - - SDK_STATIC_TEXT_SIZE = SDK_STATIC_TEXT_END - SDK_STATIC_TEXT_START; - SDK_STATIC_DATA_SIZE = SDK_STATIC_DATA_END - SDK_STATIC_DATA_START; - SDK_STATIC_SIZE = SDK_STATIC_END - SDK_STATIC_START; - __sinit__ = SDK_STATIC_SINIT_START; # for static initializer - - } > - - ..bss: - { - ALIGNALL(4); - . = ALIGN(4); - - # - # Definition to refer overlay segment, when same name symbols exist in multiple overlays. - # - - SEARCH_SYMBOL ; - - - # - # BSS BLOCK - # - SDK_STATIC_BSS_START =.; - #:::::::::: bss - - - - - - - - - - - - - #:::::::::: bss - . = ALIGN(4); - SDK_STATIC_BSS_END = .; - - SDK_STATIC_BSS_SIZE = SDK_STATIC_BSS_END - SDK_STATIC_BSS_START; - - } >> - - - ############################ AUTOLOADS ############################## - SDK_AUTOLOAD.WRAM.START = 0x037c0000; - SDK_AUTOLOAD.WRAM.END = SDK_AUTOLOAD.WRAM.START; - SDK_AUTOLOAD.WRAM.BSS_END = SDK_AUTOLOAD.WRAM.START; - SDK_AUTOLOAD.WRAM.SIZE = 0; - SDK_AUTOLOAD.WRAM.BSS_SIZE = 0; - SDK_AUTOLOAD_START = SDK_STATIC_END; - SDK_AUTOLOAD_SIZE = 0; - SDK_AUTOLOAD_NUMBER = ; - - - .: - { - ALIGNALL(4); - . = ALIGN(4); - - # - # Definition to refer overlay segment, when same name symbols exist in multiple overlays. - # - - SEARCH_SYMBOL ; - - - # - # TEXT BLOCK: READ ONLY - # - SDK_AUTOLOAD__ID =; - SDK_AUTOLOAD..ID =; - SDK_AUTOLOAD..START =.; - SDK_AUTOLOAD..TEXT_START =.; - #:::::::::: text/rodata - - - - - - - - - . = ALIGN(4); - SDK_STATIC_ETABLE_START =.; - __exception_table_start__ =.; - EXCEPTION - __exception_table_end__ =.; - SDK_STATIC_ETABLE_END =.; - - - - - - - - - - - - - - . = ALIGN(4); - SDK_AUTOLOAD..SINIT_START =.; - #:::::::::: ctor - - - - - - - - - - - - - WRITEW 0; - #:::::::::: ctor - SDK_AUTOLOAD..SINIT_END =.; - #:::::::::: text/rodata - SDK_AUTOLOAD..TEXT_END =.; - - # - # DATA BLOCK: READ WRITE BLOCK - # - . = ALIGN(4); - SDK_AUTOLOAD..DATA_START =.; - #:::::::::: data - - - - - - - - - - - - - - - - - - - - - - - - - #:::::::::: data - SDK_AUTOLOAD..DATA_END =.; - . = ALIGN(4); - SDK_AUTOLOAD..END =.; - - SDK_AUTOLOAD..TEXT_SIZE = SDK_AUTOLOAD..TEXT_END - SDK_AUTOLOAD..TEXT_START; - SDK_AUTOLOAD..DATA_SIZE = SDK_AUTOLOAD..DATA_END - SDK_AUTOLOAD..DATA_START; - SDK_AUTOLOAD..SIZE = SDK_AUTOLOAD..END - SDK_AUTOLOAD..START; - SDK_AUTOLOAD_SIZE = SDK_AUTOLOAD_SIZE + SDK_AUTOLOAD..SIZE; - - } > - - ..bss: - { - ALIGNALL(4); - . = ALIGN(4); - - # - # Definition to refer overlay segment, when same name symbols exist in multiple overlays. - # - - SEARCH_SYMBOL ; - - - # - # BSS BLOCK - # - SDK_AUTOLOAD..BSS_START = .; - #:::::::::: bss - - - - - - - - - - - - - - - - - - - - - - - - - #:::::::::: bss - . = ALIGN(4); - SDK_AUTOLOAD..BSS_END = .; - - SDK_AUTOLOAD..BSS_SIZE = SDK_AUTOLOAD..BSS_END - SDK_AUTOLOAD..BSS_START; - - } >> - - - - SDK_AUTOLOAD_WRAM_START = SDK_AUTOLOAD.WRAM.START; - SDK_AUTOLOAD_WRAM_END = SDK_AUTOLOAD.WRAM.END; - SDK_AUTOLOAD_WRAM_BSS_END = SDK_AUTOLOAD.WRAM.BSS_END; - SDK_AUTOLOAD_WRAM_SIZE = SDK_AUTOLOAD.WRAM.SIZE; - SDK_AUTOLOAD_WRAM_BSS_SIZE = SDK_AUTOLOAD.WRAM.BSS_SIZE; - - ############################ AUTOLOAD_INFO ########################## - .binary.AUTOLOAD_INFO: - { - - WRITEW ADDR(.); - WRITEW SDK_AUTOLOAD..SIZE; - WRITEW SDK_AUTOLOAD..SINIT_START; - WRITEW SDK_AUTOLOAD..BSS_SIZE; - - - } > binary.AUTOLOAD_INFO - - SDK_AUTOLOAD_LIST = SDK_AUTOLOAD_START + SDK_AUTOLOAD_SIZE; - SDK_AUTOLOAD_LIST_END = SDK_AUTOLOAD_START + SDK_AUTOLOAD_SIZE + SIZEOF(.binary.AUTOLOAD_INFO); - SDK_AUTOLOAD_SIZE = SDK_AUTOLOAD_SIZE + SIZEOF(.binary.AUTOLOAD_INFO); - - ############################ STATIC_FOOTER ########################## - .binary.STATIC_FOOTER: - { - WRITEW 0xdec00621; # LE(0x2106C0DE) = NITRO CODE - WRITEW _start_ModuleParams - ADDR(.); - WRITEW 0; # NO DIGEST - WRITEW _start_LtdModuleParams - ADDR(.); - } > binary.STATIC_FOOTER - - ############################ OVERLAYS ############################### - SDK_OVERLAY_NUMBER = ; - - - .: - { - ALIGNALL(4); - . = ALIGN(4); - - # - # Definition to refer overlay segment, when same name symbols exist in multiple overlays. - # - - SEARCH_SYMBOL ; - - - # - # TEXT BLOCK: READ ONLY - # - SDK_OVERLAY__ID =; ### SEGMENT OVERLAY ID - SDK_OVERLAY..ID =; - SDK_OVERLAY..START =.; - SDK_OVERLAY..TEXT_START =.; - #:::::::::: text/rodata - - - - - - - - - - - - - - - - - - - . = ALIGN(4); - SDK_OVERLAY..SINIT_START =.; - #:::::::::: ctor - - - - - - - - - - - - - WRITEW 0; - #:::::::::: ctor - SDK_OVERLAY..SINIT_END =.; - #:::::::::: text/rodata - SDK_OVERLAY..TEXT_END =.; - - # - # DATA BLOCK: READ WRITE - # - . = ALIGN(4); - SDK_OVERLAY..DATA_START =.; - #:::::::::: data - - - - - - - - - - - - - #:::::::::: data - SDK_OVERLAY..DATA_END =.; - . = ALIGN(4); - SDK_OVERLAY..END =.; - - SDK_OVERLAY..TEXT_SIZE = SDK_OVERLAY..TEXT_END - SDK_OVERLAY..TEXT_START; - SDK_OVERLAY..DATA_SIZE = SDK_OVERLAY..DATA_END - SDK_OVERLAY..DATA_START; - SDK_OVERLAY..SIZE = SDK_OVERLAY..END - SDK_OVERLAY..START; - - } > - - ..bss: - { - ALIGNALL(4); - . = ALIGN(4); - - # - # Definition to refer overlay segment, when same name symbols exist in multiple overlays. - # - - SEARCH_SYMBOL ; - - - # - # BSS BLOCK - # - SDK_OVERLAY..BSS_START = .; - #:::::::::: bss - - - - - - - - - - - - - #:::::::::: bss - . = ALIGN(4); - SDK_OVERLAY..BSS_END = .; - - SDK_OVERLAY..BSS_SIZE = SDK_OVERLAY..BSS_END - SDK_OVERLAY..BSS_START; - - } >> - - - - ############################ OVERLAYDEFS ############################ - .F: - { - ### module information - WRITEW ADDR(.); # load address - WRITEW _start; # entry address - WRITEW SDK_STATIC_SIZE + SDK_AUTOLOAD_SIZE; # size of module - WRITEW _start_AutoloadDoneCallback; # callback autoload done - - ### overlay filename - - WRITES (""); # Overlay - - - } > F - - ############################ OVERLAYTABLE ########################### - .F: - { - - WRITEW ; # overlay ID - WRITEW ADDR(.); # load address - WRITEW SDK_OVERLAY..SIZE; # size of module - WRITEW SDK_OVERLAY..BSS_SIZE; # size of bss - WRITEW SDK_OVERLAY..SINIT_START; # start address of static init - WRITEW SDK_OVERLAY..SINIT_END; # end address of static init - WRITEW ; # ROM file ID - WRITEW 0; # Reserved - - - } > F - - ############################ OTHERS ################################# - SDK_WRAM_ARENA_LO = SDK_AUTOLOAD.WRAM.BSS_END; - - SDK_IRQ_STACKSIZE = ; # allocated in WRAM - SDK_SYS_STACKSIZE = ; # allocated in WRAM - SDK_SYS_STACKSIZE_SIGN = (SDK_SYS_STACKSIZE < 0x80000000) * 2 - 1; - - .check.WORKRAM: - { - . = . + SDK_AUTOLOAD.WRAM.BSS_END - SDK_AUTOLOAD.WRAM.START + 0x080 + SDK_IRQ_STACKSIZE + SDK_SYS_STACKSIZE * SDK_SYS_STACKSIZE_SIGN; - - } > check.WORKRAM - - ########################### LTDAUTOLOADS ############################ - SDK_LTDAUTOLOAD.LTDMAIN.START = 0x02f88000; - SDK_LTDAUTOLOAD.LTDMAIN.END = SDK_LTDAUTOLOAD.LTDMAIN.START; - SDK_LTDAUTOLOAD.LTDMAIN.BSS_END = SDK_LTDAUTOLOAD.LTDMAIN.START; - SDK_LTDAUTOLOAD.LTDMAIN.SIZE = 0; - SDK_LTDAUTOLOAD.LTDMAIN.BSS_SIZE = 0; - SDK_LTDAUTOLOAD_TOP_START = 0x02e80000; - SDK_LTDAUTOLOAD_TOP_SIZE = 4; # STATIC 領域が無い代わりに 4 bytes のダミーがバイナリファイルの先頭に入る # - SDK_LTDAUTOLOAD_START = SDK_LTDAUTOLOAD_TOP_START + SDK_LTDAUTOLOAD_TOP_SIZE; - SDK_LTDAUTOLOAD_SIZE = 0; - SDK_LTDAUTOLOAD_NUMBER = ; - - .binary.LTDAUTOLOAD_TOP: - { - WRITEW 0; - - } > binary.LTDAUTOLOAD_TOP - - - .: - { - ALIGNALL(4); - . = ALIGN(4); - - # - # Definition to refer overlay segment, when same name symbols exist in multiple overlays. - # - - SEARCH_SYMBOL ; - - - SDK_LTDAUTOLOAD__ID =; - SDK_LTDAUTOLOAD..ID =; - SDK_LTDAUTOLOAD..START =.; - # - # TEXT BLOCK: READ ONLY - # - SDK_LTDAUTOLOAD..TEXT_START =.; - #:::::::::: text/rodata - - - - - - - - - - - - - - - - - - - . = ALIGN(4); - SDK_LTDAUTOLOAD..SINIT_START =.; - #:::::::::: ctor - - - - - - - - - - - - - WRITEW 0; - #:::::::::: ctor - SDK_LTDAUTOLOAD..SINIT_END =.; - #:::::::::: text/rodata - SDK_LTDAUTOLOAD..TEXT_END =.; - - # - # DATA BLOCK: READ WRITE BLOCK - # - . = ALIGN(4); - SDK_LTDAUTOLOAD..DATA_START =.; - #:::::::::: data - - - - - - - - - - - - - - - - - - - #:::::::::: data - SDK_LTDAUTOLOAD..DATA_END =.; - . = ALIGN(4); - SDK_LTDAUTOLOAD..END =.; - - SDK_LTDAUTOLOAD..TEXT_SIZE = SDK_LTDAUTOLOAD..TEXT_END - SDK_LTDAUTOLOAD..TEXT_START; - SDK_LTDAUTOLOAD..DATA_SIZE = SDK_LTDAUTOLOAD..DATA_END - SDK_LTDAUTOLOAD..DATA_START; - SDK_LTDAUTOLOAD..SIZE = SDK_LTDAUTOLOAD..END - SDK_LTDAUTOLOAD..START; - SDK_LTDAUTOLOAD_SIZE = SDK_LTDAUTOLOAD_SIZE + SDK_LTDAUTOLOAD..SIZE; - - } > - - ..bss: - { - ALIGNALL(4); - . = ALIGN(4); - - # - # Definition to refer overlay segment, when same name symbols exist in multiple overlays. - # - - SEARCH_SYMBOL ; - - - # - # BSS BLOCK - # - SDK_LTDAUTOLOAD..BSS_START =.; - #:::::::::: bss - - - - - - - - - - - - - - - - - - - #:::::::::: bss - . = ALIGN(4); - SDK_LTDAUTOLOAD..BSS_END =.; - - SDK_LTDAUTOLOAD..BSS_SIZE = SDK_LTDAUTOLOAD..BSS_END - SDK_LTDAUTOLOAD..BSS_START; - - } >> - - - - SDK_LTDAUTOLOAD_LTDMAIN_START = SDK_LTDAUTOLOAD.LTDMAIN.START; - SDK_LTDAUTOLOAD_LTDMAIN_END = SDK_LTDAUTOLOAD.LTDMAIN.END; - SDK_LTDAUTOLOAD_LTDMAIN_BSS_END = SDK_LTDAUTOLOAD.LTDMAIN.BSS_END; - SDK_LTDAUTOLOAD_LTDMAIN_SIZE = SDK_LTDAUTOLOAD.LTDMAIN.SIZE; - SDK_LTDAUTOLOAD_LTDMAIN_BSS_SIZE = SDK_LTDAUTOLOAD.LTDMAIN.BSS_SIZE; - - ######################### LTDAUTOLOAD_INFO ########################## - .binary.LTDAUTOLOAD_INFO: - { - - WRITEW ADDR(.); - WRITEW SDK_LTDAUTOLOAD..SIZE; - WRITEW SDK_LTDAUTOLOAD..SINIT_START; - WRITEW SDK_LTDAUTOLOAD..BSS_SIZE; - - - } > binary.LTDAUTOLOAD_INFO - - SDK_LTDAUTOLOAD_LIST = SDK_LTDAUTOLOAD_START + SDK_LTDAUTOLOAD_SIZE; - SDK_LTDAUTOLOAD_LIST_END = SDK_LTDAUTOLOAD_LIST + SIZEOF(.binary.LTDAUTOLOAD_INFO); - SDK_LTDAUTOLOAD_SIZE = SDK_LTDAUTOLOAD_SIZE + SIZEOF(.binary.LTDAUTOLOAD_INFO); - - ########################### LTDOVERLAYS ############################# - SDK_LTDOVERLAY_NUMBER = ; - - - .: - { - ALIGNALL(4); - . = ALIGN(4); - - # - # Definition to refer overlay segment, when same name symbols exist in multiple overlays. - # - - SEARCH_SYMBOL ; - - - SDK_LTDOVERLAY__ID =; - SDK_LTDOVERLAY..ID =; - SDK_LTDOVERLAY..START =.; - # - # TEXT BLOCK: READ ONLY - # - SDK_LTDOVERLAY..TEXT_START =.; - #:::::::::: text/rodata - - - - - - - - - - - - - - - - - - - . = ALIGN(4); - SDK_LTDOVERLAY..SINIT_START =.; - #:::::::::: ctor - - - - - - - - - - - - - WRITEW 0; - #:::::::::: ctor - SDK_LTDOVERLAY..SINIT_END =.; - #:::::::::: text/rodata - SDK_LTDOVERLAY..TEXT_END =.; - - # - # DATA BLOCK: READ WRITE - # - . = ALIGN(4); - SDK_LTDOVERLAY..DATA_START =.; - #:::::::::: data - - - - - - - - - - - - - #:::::::::: data - SDK_LTDOVERLAY..DATA_END =.; - . = ALIGN(4); - SDK_LTDOVERLAY..END =.; - - SDK_LTDOVERLAY..TEXT_SIZE = SDK_LTDOVERLAY..TEXT_END - SDK_LTDOVERLAY..TEXT_START; - SDK_LTDOVERLAY..DATA_SIZE = SDK_LTDOVERLAY..DATA_END - SDK_LTDOVERLAY..DATA_START; - SDK_LTDOVERLAY..SIZE = SDK_LTDOVERLAY..END - SDK_LTDOVERLAY..START; - - } > - - ..bss: - { - ALIGNALL(4); - . = ALIGN(4); - - # - # Definition to refer overlay segment, when same name symbols exist in multiple overlays. - # - - SEARCH_SYMBOL ; - - - # - # BSS BLOCK - # - SDK_LTDOVERLAY..BSS_START =.; - #:::::::::: bss - - - - - - - - - - - - - #:::::::::: bss - . = ALIGN(4); - SDK_LTDOVERLAY..BSS_END =.; - - SDK_LTDOVERLAY..BSS_SIZE = SDK_LTDOVERLAY..BSS_END - SDK_LTDOVERLAY..BSS_START; - - } >> - - - - ########################## LTDOVERLAYDEFS ########################### - .L: - { - ### TWL limited extended static module information - WRITEW SDK_LTDAUTOLOAD_TOP_START; # load address - WRITEW 0; # padding - WRITEW SDK_LTDAUTOLOAD_SIZE + SDK_LTDAUTOLOAD_TOP_SIZE; # size of module - WRITEW 0; # padding - - ### TWL limited overlay filename - - WRITES (""); - - - } > L - - ######################### LTDOVERLAYTABLE ########################### - .L: - { - - WRITES # overlay ID - WRITEW ADDR(.); # load address - WRITEW SDK_LTDOVERLAY..SIZE; # size of module - WRITEW SDK_LTDOVERLAY..BSS_SIZE; # size of bss - WRITEW SDK_LTDOVERLAY..SINIT_START; # start address of static init - WRITEW SDK_LTDOVERLAY..SINIT_END; # end address of static init - WRITEW # ROM file ID - WRITEW 0; # Reserved - - - } > L - - ############################ OTHERS ################################# - SDK_SUBPRIV_ARENA_LO = SDK_LTDAUTOLOAD.LTDMAIN.BSS_END; - .check.LTDMAIN: - { - . = SDK_SUBPRIV_ARENA_LO; - - } > check.LTDMAIN - -} diff --git a/build/tests/ExecPreLoadedApp/ARM7/my_racoon.lsf b/build/tests/ExecPreLoadedApp/ARM7/my_racoon.lsf deleted file mode 100644 index b3670046..00000000 --- a/build/tests/ExecPreLoadedApp/ARM7/my_racoon.lsf +++ /dev/null @@ -1,187 +0,0 @@ -#---------------------------------------------------------------------------- -# Project: TwlSDK - components - racoon.TWL -# File: racoon.lsf -# -# Copyright 2007 Nintendo. All rights reserved. -# -# These coded insructions, statements, and computer programs contain -# proprietary information of Nintendo of America Inc. and/or Nintendo -# Company Ltd., and are protected by Federal copyright law. They may -# not be disclosed to third parties or copied or duplicated in any form, -# in whole or in part, without the prior written consent of Nintendo. -# -# $Date:: 2008-02-01#$ -# $Rev: 4002 $ -# $Author: terui $ -#---------------------------------------------------------------------------- -# -# Nitro LCF SPEC FILE -# -#-------- -Static $(TARGET_NAME) -{ - Address 0x02a00000 - Library $(CRT0_O) - StackSize 1024 1024 -} - -#-------- -Autoload WRAM -{ - Address $(ADDRESS_LTDWRAM) - - Library libsubpsyscall.a \ - libsyscall_sp.twl.a \ - $(CW_LIBS) \ - libos_sp$(LIBSUFFIX).a \ - libmi_sp$(LIBSUFFIX).a \ - libpad_sp$(LIBSUFFIX).a \ - libpxi_sp$(LIBSUFFIX).a \ - libstd_sp$(LIBSUFFIX).a \ - libexi_sp$(LIBSUFFIX).a \ - libsnd_sp$(LIBSUFFIX).a \ - libspi_sp$(LIBSUFFIX).a \ - libpm_sp$(LIBSUFFIX).a \ - libmath_sp$(LIBSUFFIX).a \ - libscfg_sp$(LIBSUFFIX).a \ - libtp_sp$(LIBSUFFIX).a \ - libmic_sp$(LIBSUFFIX).a \ - libfs_sp$(LIBSUFFIX).a \ - libcard_sp$(LIBSUFFIX).a \ - libi2c_sp$(LIBSUFFIX).a \ - libcamera_sp$(LIBSUFFIX).a \ - libcdc_sp$(LIBSUFFIX).a \ - libsndex_sp$(LIBSUFFIX).a \ - libtpex_sp$(LIBSUFFIX).a \ - libmicex_sp$(LIBSUFFIX).a \ - libmcu_sp$(LIBSUFFIX).a \ - - Library libsdio_sp$(LIBSUFFIX).a - - Library libnvram_sp$(LIBSUFFIX).a - Library librtc_sp$(LIBSUFFIX).a - - - Object * (.etable) - Object * (.wram) - Object * (.ltdwram) - Object $(OBJDIR)/main.o - - # caches in fatfs library, that should be on WRAM. - # 2007/12/11 OBJECT() による .bss シンボルのリンクがうまくいかないので、 - # 変数定義箇所に pragma で .ltdwram セクションに含まれるように暫定対策しました。 -# Object OBJECT( FATFSi___mem_drives_structures , libfatfs_sp$(LIBSUFFIX).a) (.bss) - - ##### - # Sub-routines in WL library , that should be on WRAM. - # in TaskMan.o - Object OBJECT( MainTaskRoutine , libwl_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( AddTask , libwl_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( DeleteTask , libwl_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( LowestIdleTask , libwl_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( ExecuteMessage , libwl_sp$(LIBSUFFIX).a ) (.text) - # in BufMan.o - Object OBJECT( NewHeapBuf , libwl_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( DeleteHeapBuf , libwl_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( AllocateHeapBuf , libwl_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( ReleaseHeapBuf , libwl_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( MoveHeapBuf , libwl_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( AddHeapBuf , libwl_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( GetHeapBufNextAdrs , libwl_sp$(LIBSUFFIX).a ) (.text) - # in WlCmdIf.o - Object OBJECT( RequestCmdTask , libwl_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( SendMessageToWmDirect , libwl_sp$(LIBSUFFIX).a ) (.text) - # in WlNic.o - Object OBJECT( WStart , libwl_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( WStop , libwl_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( WSetStaState , libwl_sp$(LIBSUFFIX).a ) (.text) - # in WlIntr.o - Object OBJECT( WlIntr , libwl_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( WlIntrPreTbtt , libwl_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( WlIntrTbtt , libwl_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( WlIntrActEnd , libwl_sp$(LIBSUFFIX).a ) (.text) -# Object OBJECT( WlIntrAckCntOvf , libwl_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( WlIntrCntOvf , libwl_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( WlIntrTxErr , libwl_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( WlIntrRxCntup , libwl_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( WlIntrTxEnd , libwl_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( WlIntrRxEnd , libwl_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( WlIntrMpEnd , libwl_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( WlIntrStartTx , libwl_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( WlIntrStartRx , libwl_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( SetParentTbttTxq , libwl_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( MacBugTxMp , libwl_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( AdjustRingPointer , libwl_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( CheckKeyTxEnd , libwl_sp$(LIBSUFFIX).a ) (.text) - # in WlIntrTask.o - Object OBJECT( WlIntrTxBeaconTask , libwl_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( WlIntrTxEndTask , libwl_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( WlIntrRxEndTask , libwl_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( WlIntrMpEndTask , libwl_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( SetParentTbttTxqTask , libwl_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( TakeoutRxFrame , libwl_sp$(LIBSUFFIX).a ) (.text) - # in TxCtrl.o - Object OBJECT( InitTxCtrl , libwl_sp$(LIBSUFFIX).a ) (.text) - # in RxCtrl.o - Object OBJECT( InitRxCtrl , libwl_sp$(LIBSUFFIX).a ) (.text) - # in WaitLoop.o - Object OBJECT( WaitLoop_Rxpe , libwl_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( WaitLoop_Waitus , libwl_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( WaitLoop_ClrAid , libwl_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( WaitLoop_BbpAccess , libwl_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( WaitLoop_RfAccess , libwl_sp$(LIBSUFFIX).a ) (.text) - -# Object OBJECT( s_ar_cookie_mem , libathdrv_sp$(LIBSUFFIX).a ) (.bss) -# Object OBJECT( nin_ar , libathdrv_sp$(LIBSUFFIX).a ) (.bss) - - Object OBJECT( a_netbuf_alloc_rx , libathdrv_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( a_netbuf_register_rx_callback , libathdrv_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( nin_driver_tx , libathdrv_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( nin_tx_queue_full , libathdrv_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( nin_tx_complete , libathdrv_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( nin_rx , libathdrv_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( ar6000_bitrate_rx , libathdrv_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( ar6000_channelList_rx , libathdrv_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( ar6000_txPwr_rx , libathdrv_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( ar6000_gpio_intr_rx , libathdrv_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( ar6000_gpio_data_rx , libathdrv_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( ar6000_gpio_ack_rx , libathdrv_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( nin_drv_BmiWriteSocReg , libathdrv_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( ar6000_control_tx , libathdrv_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( nin_drv_BmiReadMemory , libathdrv_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( nin_drv_BmiWriteMemory , libathdrv_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( BMI_read_reg , libathdrv_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( BMI_write_reg , libathdrv_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( BMI_read_mem , libathdrv_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( BMI_write_mem , libathdrv_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( wmi_dix_2_dot3 , libathdrv_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( wmi_control_rx_xtnd , libathdrv_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( wmi_control_rx , libathdrv_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( wmi_cmd_send , libathdrv_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( wmi_cmd_send_xtnd , libathdrv_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( HIFReadWrite , libathdrv_sp$(LIBSUFFIX).a ) (.text) - Object OBJECT( ath_ioctl , libathdrv_sp$(LIBSUFFIX).a ) (.text) - - Object OBJECT( wpa_sm_rx_eapol , libwpa_sp$(LIBSUFFIX).a ) (.text) - -} - -#-------- -Ltdautoload LTDMAIN -{ - Address 0x02f88000 - - Object * (.ltdmain) - Library libwm_sp$(LIBSUFFIX).a \ - libnwm_sp$(LIBSUFFIX).a \ - libwvr_sp$(LIBSUFFIX).a \ - libwl_sp$(LIBSUFFIX).a - - Library libwpa_sp$(LIBSUFFIX).a - Library libathdrv_sp$(LIBSUFFIX).a - - Library libfatfs_sp$(LIBSUFFIX).a \ - $(USE_CRYPTO_LIBS) - Library $(ISDBG_LIBS_TWL) - Library $(ISDBG_LIBS_NITRO) -} diff --git a/build/tests/ExecPreLoadedApp/ARM7/my_racoon.response.template b/build/tests/ExecPreLoadedApp/ARM7/my_racoon.response.template deleted file mode 100644 index 88b18081..00000000 --- a/build/tests/ExecPreLoadedApp/ARM7/my_racoon.response.template +++ /dev/null @@ -1,40 +0,0 @@ - - - - - -l - - - - - - - -l - - - - -og ,0 -ol - - - - - -l - - - - - - - - -l - - - - -og ,0 -ol - - - - - -l - - diff --git a/build/tests/ExecPreLoadedApp/ARM9/ARM9-TS.lsf b/build/tests/ExecPreLoadedApp/ARM9/ARM9-TS.lsf deleted file mode 100644 index 17f40824..00000000 --- a/build/tests/ExecPreLoadedApp/ARM9/ARM9-TS.lsf +++ /dev/null @@ -1,54 +0,0 @@ -#---------------------------------------------------------------------------- -# Project: TwlSDK - include -# File: ARM9-BB.lsf -# -# Copyright 2007 Nintendo. All rights reserved. -# -# These coded insructions, statements, and computer programs contain -# proprietary information of Nintendo of America Inc. and/or Nintendo -# Company Ltd., and are protected by Federal copyright law. They may -# not be disclosed to third parties or copied or duplicated in any form, -# in whole or in part, without the prior written consent of Nintendo. -# -# $Date:: 2007-11-20#$ -# $Rev: 221 $ -# $Author: yoshida_teruhisa $ -#---------------------------------------------------------------------------- -# -# TWL LCF SPEC FILE -# - -Static $(TARGET_NAME) -{ - Address 0x02800000 - Object $(OBJS_STATIC) - Library $(LLIBS) $(GLIBS) $(CW_LIBS) -} - - -Autoload ITCM -{ - Address 0x01ff8000 - Object * (.itcm) - Object $(OBJS_AUTOLOAD) (.text) - Object $(OBJS_AUTOLOAD) (.rodata) -} - -Autoload DTCM -{ - Address $(ADDRESS_DTCM) - Object * (.dtcm) - Object $(OBJS_AUTOLOAD) (.data) - Object $(OBJS_AUTOLOAD) (.sdata) - Object $(OBJS_AUTOLOAD) (.bss) - Object $(OBJS_AUTOLOAD) (.sbss) -} - -Ltdautoload LTDMAIN -{ - # NITRO/TWL 共有のオーバーレイが在る場合は、さらにその後ろに配置する必要があります。 - After $(TARGET_NAME) - Object * (.ltdmain) - Object $(OBJS_LTDAUTOLOAD) - Library $(LLIBS_EX) $(GLIBS_EX) -} diff --git a/build/tests/ExecPreLoadedApp/ARM9/Makefile b/build/tests/ExecPreLoadedApp/ARM9/Makefile deleted file mode 100644 index 8c730d4b..00000000 --- a/build/tests/ExecPreLoadedApp/ARM9/Makefile +++ /dev/null @@ -1,69 +0,0 @@ -#! make -f -#---------------------------------------------------------------------------- -# Project: TwlSDK - demos.TWL - nandApp - ExecPreLoadedApp -# File: Makefile -# -# Copyright 2007 Nintendo. All rights reserved. -# -# These coded instructions, statements, and computer programs contain -# proprietary information of Nintendo of America Inc. and/or Nintendo -# Company Ltd., and are protected by Federal copyright law. They may -# not be disclosed to third parties or copied or duplicated in any form, -# in whole or in part, without the prior written consent of Nintendo. -# -# $Date:: $ -# $Rev: $ -# $Author: $ -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- - -TARGET_PLATFORM = TWL -TWL_ARCHGEN = LIMITED - -TITLEID_LO = MLEP - -TARGET_BIN = ExecPreLoadedApp.tad - -LCFILE_SPEC = ARM9-TS.lsf -ROM_SPEC = main.rsf - -MISC_DIR = ../../misc -DATA_DIR = ../../data - -SRCS = main.c ExecPreLoadedApp.c \ - $(MISC_DIR)/misc_simple.c \ - $(DATA_DIR)/data.c - -LINCLUDES = $(TWLSDK_ROOT)/build/demos/gx/UnitTours/DEMOLib/include \ - $(MISC_DIR) \ - $(DATA_DIR) - -LLIBRARY_DIRS += $(TWLSDK_ROOT)/build/demos/gx/UnitTours/DEMOLib/lib/$(TWL_BUILDTYPE) - -LLIBRARIES += libDEMO$(TWL_LIBSUFFIX).a - -ADDRESS_DTCM = 0x0e000000 - -MAKEROM_FLAGS += -F -DTITLEID_LO='$(TITLEID_LO)' - -include $(TWLSDK_ROOT)/build/buildtools/commondefs - -DEFAULT_COMP_ARM7 = my_racoon -DEFAULT_MAKEROM_ARM7_BASE = ../ARM7/bin/$(TWL_BUILDTYPE_ARM7)/$(DEFAULT_COMP_ARM7) -DEFAULT_MAKEROM_ARM7 = $(DEFAULT_MAKEROM_ARM7_BASE).$(TWL_ELF_EXT) - -SDK_NMENU_DATADIR = $(ROOT)/build/tools/TwlNMenu/data -INSTALL_TARGETS = $(BINDIR)/$(TARGET_BIN) -INSTALL_DIR = $(SDK_NMENU_DATADIR) - -#---------------------------------------------------------------------------- - -do-build : $(TARGETS) - - -include $(TWLSDK_ROOT)/build/buildtools/modulerules - -#---------------------------------------------------------------------------- - -#===== End of Makefile ===== diff --git a/build/tests/ExecPreLoadedApp/ARM9/main.rsf b/build/tests/ExecPreLoadedApp/ARM9/main.rsf deleted file mode 100644 index bb1048fc..00000000 --- a/build/tests/ExecPreLoadedApp/ARM9/main.rsf +++ /dev/null @@ -1,178 +0,0 @@ -#---------------------------------------------------------------------------- -# Project: TwlSDK - include -# File: ROM-BB.rsf -# -# Copyright 2007 Nintendo. All rights reserved. -# -# These coded insructions, statements, and computer programs contain -# proprietary information of Nintendo of America Inc. and/or Nintendo -# Company Ltd., and are protected by Federal copyright law. They may -# not be disclosed to third parties or copied or duplicated in any form, -# in whole or in part, without the prior written consent of Nintendo. -# -# $Date:: 2007-12-19#$ -# $Rev: 378 $ -# $Author: yoshida_teruhisa $ -#---------------------------------------------------------------------------- -# -# TWL ROM SPEC FILE -# - -Arm9 -{ - Static "$(MAKEROM_ARM9:r).TWL.FLX.sbin$(COMPSUFFIX9)" - OverlayDefs "$(MAKEROM_ARM9:r)_defs.TWL.FLX.sbin$(COMPSUFFIX9)" - OverlayTable "$(MAKEROM_ARM9:r)_table.TWL.FLX.sbin$(COMPSUFFIX9)" - Elf "$(MAKEROM_ARM9:r).tef" -} - -Arm7 -{ - Static "$(MAKEROM_ARM7_BASE:r).TWL.FLX.sbin$(COMPSUFFIX7)" - OverlayDefs "$(MAKEROM_ARM7_BASE:r)_defs.TWL.FLX.sbin$(COMPSUFFIX7)" - OverlayTable "$(MAKEROM_ARM7_BASE:r)_table.TWL.FLX.sbin$(COMPSUFFIX7)" - Elf "$(MAKEROM_ARM7_BASE:r).tef" -} - -Arm9.Ltd -{ - Static "$(MAKEROM_ARM9:r).TWL.LTD.sbin$(COMPSUFFIX9)" - OverlayDefs "$(MAKEROM_ARM9:r)_defs.TWL.LTD.sbin$(COMPSUFFIX9)" - OverlayTable "$(MAKEROM_ARM9:r)_table.TWL.LTD.sbin$(COMPSUFFIX9)" -} - -Arm7.Ltd -{ - Static "$(MAKEROM_ARM7_BASE:r).TWL.LTD.sbin$(COMPSUFFIX7)" - OverlayDefs "$(MAKEROM_ARM7_BASE:r)_defs.TWL.LTD.sbin$(COMPSUFFIX7)" - OverlayTable "$(MAKEROM_ARM7_BASE:r)_table.TWL.LTD.sbin$(COMPSUFFIX7)" -} - -Property -{ - ### - ### Settings for FinalROM - ### - #### BEGIN - # - # TITLE NAME: Your product name within 12bytes - # - #TitleName "YourAppName" - - # - # MAKER CODE: Your company ID# in 2 ascii words - # issued by NINTENDO - # - #MakerCode "00" - - # - # REMASTER VERSION: Mastering version - # - #RomVersion 0 - - # - # ROM SPEED TYPE: [MROM/1TROM/UNDEFINED] - # - RomSpeedType $(MAKEROM_ROMSPEED) - - # - # ROM SIZE: in bit [64M/128M/256M/512M/1G/2G] - # - #RomSize 128M - #RomSize 256M - - # - # ROM PADDING: TRUE if finalrom - # - #RomFootPadding TRUE - - # - # ROM HEADER TEMPLATE: Provided to every product by NINTENDO - # - #RomHeaderTemplate ./etc/rom_header.template.sbin - - # - # BANNER FILE: generated from Banner Spec File - # - #BannerFile ./etc/myGameBanner.bnr - BannerFile ../banner/banner.bnr - - ### - ### Setting for TWL - ### - # - # BANNER FILE: - # - BannerTWLFile $(TWLSDK_ROOT)/include/twl/specfiles/default.bnr - - # - # Digest parameters: - # - DigestParam 1024 32 - - # - # WRAM mapping: [MAP_BB_HYB/MAP_BB_LTD/MAP_TS_HYB/MAP_TS_LTD] - # don't have to edit - # - WramMapping $(MAKEROM_WRAM_MAPPING) - - # - # Codec mode: - # don't have to edit - # - CodecMode $(MAKEROM_CODEC_MODE) - - ### - #### END -} - -AppendProperty -{ - # - # Publisher : "Nintendo" - # don't have to edit - Publisher Nintendo - - # - # Application type : [USER/SYSTEM] - # don't have to edit - AppType User - - # - # launch title on the launcher : [TRUE/FALSE] - # don't have to edit - Launch TRUE - - # - # Boot allowed Media: [GameCard/NAND] - # - Media NAND - - # - # GameCode for TitleID : Your GameCode in 4 ascii words - # - GameCode $(TITLEID_LO) - - # - # Public save data size: [16K/32K/64K/128K/256K/512K/1M/2M/4M/8M] - # - #PublicSaveDataSize 32K - - # - # Private save data size: [16K/32K/64K/128K/256K/512K/1M/2M/4M/8M] - # - #PrivateSaveDataSize 16K - - # - # Enable SaveBannerFile - #SaveBannerFile TRUE -} - -RomSpec -{ - Offset 0x00000000 - Segment ALL - HostRoot ../../data - Root /data - File simpleapp.srl -} \ No newline at end of file diff --git a/build/tests/ExecPreLoadedApp/ARM9/src/ExecPreLoadedApp.c b/build/tests/ExecPreLoadedApp/ARM9/src/ExecPreLoadedApp.c deleted file mode 100644 index 343be51f..00000000 --- a/build/tests/ExecPreLoadedApp/ARM9/src/ExecPreLoadedApp.c +++ /dev/null @@ -1,152 +0,0 @@ -/*---------------------------------------------------------------------------* - Project: TwlSDK - demos.TWL - nandApp - ExecPreLoadedApp - File: ExecPreLoadedApp.c - - Copyright 2007 Nintendo. All rights reserved. - - These coded instructions, statements, and computer programs contain - proprietary information of Nintendo of America Inc. and/or Nintendo - Company Ltd., and are protected by Federal copyright law. They may - not be disclosed to third parties or copied or duplicated in any form, - in whole or in part, without the prior written consent of Nintendo. - - $Date:: 2007-10-31#$ - $Rev: 91 $ - $Author: yosiokat $ - *---------------------------------------------------------------------------*/ - -#include -#include -#include "misc_simple.h" -#include "ExecPreLoadedApp.h" - -// define data------------------------------------------ - -#define MLEP_MENU_ELEMENT_NUM 2 // メニューの項目数 - -// extern data------------------------------------------ - -// function's prototype declaration--------------------- - -static void MenuScene( void ); - -// global variable ------------------------------------- - -// static variable ------------------------------------- -static u16 s_csr = 0; -static void(*s_pNowProcess)(void); - -// const data ----------------------------------------- -static const char *s_pStrMenu[ MLEP_MENU_ELEMENT_NUM ] = -{ - "load app and restart", - "return to launcher", -}; - -static MenuPos s_menuPos[] = { - { TRUE, 3, 6 }, - { TRUE, 3, 8 }, -}; - -static const MenuParam s_menuParam = { - MLEP_MENU_ELEMENT_NUM, - TXT_COLOR_BLACK, - TXT_COLOR_GREEN, - TXT_COLOR_RED, - &s_menuPos[ 0 ], - (const char **)&s_pStrMenu, -}; - -//====================================================== -// テストプログラム -//====================================================== - -// ============================================================================ -// -// アプリ起動 -// -// ============================================================================ - -static void DrawMenuScene( void ) -{ - myDp_Printf( 1, 0, TXT_COLOR_BLUE, MAIN_SCREEN, "ExecPreLoadedApp"); - // メニュー項目 - myDp_DrawMenu( s_csr, MAIN_SCREEN, &s_menuParam ); -} - -static void MenuInit( void ) -{ - FS_Init(3); - GX_DispOff(); - GXS_DispOff(); - - myDp_Printf( 1, 0, TXT_COLOR_BLUE, MAIN_SCREEN, "ExecPreLoadedApp"); - - s_pNowProcess = MenuScene; - - DrawMenuScene(); - - GX_DispOn(); - GXS_DispOn(); -} - - -static BOOL LoadTitle( void ) -{ - // ロード - if( !OS_SetRelocateInfoAndLoadApplication( "rom:/data/simpleapp.srl" ) ) - { - return FALSE; - } - - return TRUE; -} - -static void MenuScene(void) -{ - LauncherBootFlags tempflag = {TRUE, LAUNCHER_BOOTTYPE_MEMORY, TRUE, FALSE, TRUE, FALSE, 0}; - - //-------------------------------------- - // キー入力処理 - //-------------------------------------- - if( MYPAD_IS_TRIG(PAD_KEY_DOWN) ){ // カーソルの移動 - if( ++s_csr == MLEP_MENU_ELEMENT_NUM ) { - s_csr=0; - } - } - if( MYPAD_IS_TRIG(PAD_KEY_UP) ){ - if( --s_csr & 0x80 ) { - s_csr=MLEP_MENU_ELEMENT_NUM - 1; - } - } - - DrawMenuScene(); - - if( MYPAD_IS_TRIG(PAD_BUTTON_A) ) { // メニュー項目への分岐 - if( s_menuPos[ s_csr ].enable ) { - switch( s_csr ) { - case 0: - //アプリ起動 - if(LoadTitle()) - OS_SetLauncherParamAndResetHardware( 0, 0x00030004534d504c, &tempflag ); // SMPL - break; - case 1: - OS_SetLauncherParamAndResetHardware( 0, NULL, &tempflag ); - //再起動 - break; - } - } - } -} - -// 初期化 -void ExecPreLoadedAppInit( void ) -{ - MenuInit(); -} - -// メインループ -void ExecPreLoadedAppMain(void) -{ - s_pNowProcess(); -} diff --git a/build/tests/ExecPreLoadedApp/ARM9/src/ExecPreLoadedApp.h b/build/tests/ExecPreLoadedApp/ARM9/src/ExecPreLoadedApp.h deleted file mode 100644 index aa427c35..00000000 --- a/build/tests/ExecPreLoadedApp/ARM9/src/ExecPreLoadedApp.h +++ /dev/null @@ -1,37 +0,0 @@ -/*---------------------------------------------------------------------------* - Project: TwlIPL - File: ExecPreLoadedApp.h - - Copyright 2007 Nintendo. All rights reserved. - - These coded instructions, statements, and computer programs contain - proprietary information of Nintendo of America Inc. and/or Nintendo - Company Ltd., and are protected by Federal copyright law. They may - not be disclosed to third parties or copied or duplicated in any form, - in whole or in part, without the prior written consent of Nintendo. - - $Date:: 2007-10-30#$ - $Rev: 73 $ - $Author: yosiokat $ - *---------------------------------------------------------------------------*/ - -#ifndef __COOPERATION_B_H__ -#define __COOPERATION_B_H__ - -#ifdef __cplusplus -extern "C" { -#endif - - -#include - -// define data---------------------------------------------------------- - -void ExecPreLoadedAppInit( void ); -void ExecPreLoadedAppMain( void ); - -#ifdef __cplusplus -} -#endif - -#endif // __COOPERATION_B_H__ diff --git a/build/tests/ExecPreLoadedApp/ARM9/src/main.c b/build/tests/ExecPreLoadedApp/ARM9/src/main.c deleted file mode 100644 index 0327bac8..00000000 --- a/build/tests/ExecPreLoadedApp/ARM9/src/main.c +++ /dev/null @@ -1,68 +0,0 @@ -/*---------------------------------------------------------------------------* - Project: TwlIPL - File: main.c - - Copyright 2007 Nintendo. All rights reserved. - - These coded instructions, statements, and computer programs contain - proprietary information of Nintendo of America Inc. and/or Nintendo - Company Ltd., and are protected by Federal copyright law. They may - not be disclosed to third parties or copied or duplicated in any form, - in whole or in part, without the prior written consent of Nintendo. - - $Date:: 2007-11-27#$ - $Rev: 272 $ - $Author: yosiokat $ - *---------------------------------------------------------------------------*/ - -#include -#include "misc_simple.h" -#include "ExecPreLoadedApp.h" - -// extern data----------------------------------------------------------------- - -// define data----------------------------------------------------------------- - -// function's prototype------------------------------------------------------- -static void INTR_VBlank( void ); - -// global variable------------------------------------------------------------- - -// static variable------------------------------------------------------------- -BOOL g_isValidTSD; - -// const data------------------------------------------------------------------ - - -// ============================================================================ -// function's description -// ============================================================================ -void TwlMain(void) -{ - myInit(); - - ExecPreLoadedAppInit(); - // メインループ---------------------------- - while(1){ - - myPreMain(); - - ExecPreLoadedAppMain(); - - myProMain(); - - OS_WaitIrq(1, OS_IE_V_BLANK); // Vブランク割り込み待ち - } -} - - -// ============================================================================ -// 割り込み処理 -// ============================================================================ - -// Vブランク割り込み -static void INTR_VBlank(void) -{ - OS_SetIrqCheckFlag(OS_IE_V_BLANK); // Vブランク割込チェックのセット -} - diff --git a/build/tests/ExecPreLoadedApp/Makefile b/build/tests/ExecPreLoadedApp/Makefile deleted file mode 100644 index adb8fdbb..00000000 --- a/build/tests/ExecPreLoadedApp/Makefile +++ /dev/null @@ -1,30 +0,0 @@ -#! make -f -#---------------------------------------------------------------------------- -# Project: TwlIPL -# File: Makefile -# -# Copyright 2007 Nintendo. All rights reserved. -# -# These coded instructions, statements, and computer programs contain -# proprietary information of Nintendo of America Inc. and/or Nintendo -# Company Ltd., and are protected by Federal copyright law. They may -# not be disclosed to third parties or copied or duplicated in any form, -# in whole or in part, without the prior written consent of Nintendo. -# -# $Date:: 2007-10-03#$ -# $Rev: 1319 $ -# $Author: kitase_hirotake $ -#---------------------------------------------------------------------------- - -include $(TWLSDK_ROOT)/build/buildtools/commondefs - -#---------------------------------------------------------------------------- - -SUBDIRS = banner ARM7 ARM9 - -#---------------------------------------------------------------------------- - -include $(TWLSDK_ROOT)/build/buildtools/modulerules - - -#===== End of Makefile ===== diff --git a/build/tests/ExecPreLoadedApp/banner/Makefile b/build/tests/ExecPreLoadedApp/banner/Makefile deleted file mode 100644 index aafe44c2..00000000 --- a/build/tests/ExecPreLoadedApp/banner/Makefile +++ /dev/null @@ -1,50 +0,0 @@ -#! make -f -#---------------------------------------------------------------------------- -# Project: TwlIPL -# File: Makefile -# -# Copyright 2007 Nintendo. All rights reserved. -# -# These coded instructions, statements, and computer programs contain -# proprietary information of Nintendo of America Inc. and/or Nintendo -# Company Ltd., and are protected by Federal copyright law. They may -# not be disclosed to third parties or copied or duplicated in any form, -# in whole or in part, without the prior written consent of Nintendo. -# -# $Date:: 2007-10-03#$ -# $Rev: 1319 $ -# $Author: kitase_hirotake $ -#---------------------------------------------------------------------------- - -include $(TWLSDK_ROOT)/build/buildtools/commondefs -MAKEBANNER = $(TWL_TOOLSDIR)/bin/makebanner.TWL.exe - -ICON_DIR = ./icon - -BANNER_ICON = $(ICON_DIR)/gameIcon.bmp -BANNER_SPEC = banner_v3.bsf - -TARGETS = banner.bnr -INSTALL_DIR = ./ -INSTALL_TARGETS = $(TARGETS) - -BANNER_ICON_NAME = $(basename $(BANNER_ICON)) - -LDIRT_CLEAN = $(TARGETS) \ - $(BANNER_ICON_NAME).nbfs \ - $(BANNER_ICON_NAME).nbfc \ - $(BANNER_ICON_NAME).nbfp \ - $(TARGETS:.bnr=.srl) - -include $(TWLSDK_ROOT)/build/buildtools/modulerules - -#---------------------------------------------------------------------------- -# build -#---------------------------------------------------------------------------- -do-build: $(TARGETS) - -$(TARGETS): $(BANNER_SPEC) $(BANNER_ICON) - $(NTEXCONV) -no -bg -bgb -bgnc $(BANNER_ICON) >/dev/null && \ - $(MAKEBANNER) -d -N $(BANNER_ICON_NAME) $(BANNER_SPEC) $(TARGETS) - -# diff --git a/build/tests/ExecPreLoadedApp/banner/banner_v3.bsf b/build/tests/ExecPreLoadedApp/banner/banner_v3.bsf deleted file mode 100644 index 05e7140d..00000000 Binary files a/build/tests/ExecPreLoadedApp/banner/banner_v3.bsf and /dev/null differ diff --git a/build/tests/ExecPreLoadedApp/banner/icon/gameIcon.bmp b/build/tests/ExecPreLoadedApp/banner/icon/gameIcon.bmp deleted file mode 100644 index a8b22308..00000000 Binary files a/build/tests/ExecPreLoadedApp/banner/icon/gameIcon.bmp and /dev/null differ diff --git a/build/tests/ExecTmpApp/ARM9/Makefile b/build/tests/ExecTmpApp/ARM9/Makefile deleted file mode 100644 index 4f7b427d..00000000 --- a/build/tests/ExecTmpApp/ARM9/Makefile +++ /dev/null @@ -1,62 +0,0 @@ -#! make -f -#---------------------------------------------------------------------------- -# Project: TwlSDK - demos.TWL - nandApp - ExecTmpApp -# File: Makefile -# -# Copyright 2007 Nintendo. All rights reserved. -# -# These coded instructions, statements, and computer programs contain -# proprietary information of Nintendo of America Inc. and/or Nintendo -# Company Ltd., and are protected by Federal copyright law. They may -# not be disclosed to third parties or copied or duplicated in any form, -# in whole or in part, without the prior written consent of Nintendo. -# -# $Date:: $ -# $Rev: $ -# $Author: $ -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- - -TARGET_PLATFORM = TWL -TWL_ARCHGEN = LIMITED - -TITLEID_LO = ETFA - -TARGET_BIN = ExecTmpApp.tad - -ROM_SPEC = main.rsf - -MISC_DIR = ../../misc -DATA_DIR = ../../data - -SRCS = main.c ExecTmpApp.c \ - $(MISC_DIR)/misc_simple.c \ - $(DATA_DIR)/data.c - -LINCLUDES = $(TWLSDK_ROOT)/build/demos/gx/UnitTours/DEMOLib/include \ - $(MISC_DIR) \ - $(DATA_DIR) - -LLIBRARY_DIRS += $(TWLSDK_ROOT)/build/demos/gx/UnitTours/DEMOLib/lib/$(TWL_BUILDTYPE) - -LLIBRARIES += libDEMO$(TWL_LIBSUFFIX).a - -MAKEROM_FLAGS += -F -DTITLEID_LO='$(TITLEID_LO)' - -include $(TWLSDK_ROOT)/build/buildtools/commondefs - -SDK_NMENU_DATADIR = $(ROOT)/build/tools/TwlNMenu/data -INSTALL_TARGETS = $(BINDIR)/$(TARGET_BIN) -INSTALL_DIR = $(SDK_NMENU_DATADIR) - -#---------------------------------------------------------------------------- - -do-build : $(TARGETS) - - -include $(TWLSDK_ROOT)/build/buildtools/modulerules - -#---------------------------------------------------------------------------- - -#===== End of Makefile ===== diff --git a/build/tests/ExecTmpApp/ARM9/main.rsf b/build/tests/ExecTmpApp/ARM9/main.rsf deleted file mode 100644 index bb1048fc..00000000 --- a/build/tests/ExecTmpApp/ARM9/main.rsf +++ /dev/null @@ -1,178 +0,0 @@ -#---------------------------------------------------------------------------- -# Project: TwlSDK - include -# File: ROM-BB.rsf -# -# Copyright 2007 Nintendo. All rights reserved. -# -# These coded insructions, statements, and computer programs contain -# proprietary information of Nintendo of America Inc. and/or Nintendo -# Company Ltd., and are protected by Federal copyright law. They may -# not be disclosed to third parties or copied or duplicated in any form, -# in whole or in part, without the prior written consent of Nintendo. -# -# $Date:: 2007-12-19#$ -# $Rev: 378 $ -# $Author: yoshida_teruhisa $ -#---------------------------------------------------------------------------- -# -# TWL ROM SPEC FILE -# - -Arm9 -{ - Static "$(MAKEROM_ARM9:r).TWL.FLX.sbin$(COMPSUFFIX9)" - OverlayDefs "$(MAKEROM_ARM9:r)_defs.TWL.FLX.sbin$(COMPSUFFIX9)" - OverlayTable "$(MAKEROM_ARM9:r)_table.TWL.FLX.sbin$(COMPSUFFIX9)" - Elf "$(MAKEROM_ARM9:r).tef" -} - -Arm7 -{ - Static "$(MAKEROM_ARM7_BASE:r).TWL.FLX.sbin$(COMPSUFFIX7)" - OverlayDefs "$(MAKEROM_ARM7_BASE:r)_defs.TWL.FLX.sbin$(COMPSUFFIX7)" - OverlayTable "$(MAKEROM_ARM7_BASE:r)_table.TWL.FLX.sbin$(COMPSUFFIX7)" - Elf "$(MAKEROM_ARM7_BASE:r).tef" -} - -Arm9.Ltd -{ - Static "$(MAKEROM_ARM9:r).TWL.LTD.sbin$(COMPSUFFIX9)" - OverlayDefs "$(MAKEROM_ARM9:r)_defs.TWL.LTD.sbin$(COMPSUFFIX9)" - OverlayTable "$(MAKEROM_ARM9:r)_table.TWL.LTD.sbin$(COMPSUFFIX9)" -} - -Arm7.Ltd -{ - Static "$(MAKEROM_ARM7_BASE:r).TWL.LTD.sbin$(COMPSUFFIX7)" - OverlayDefs "$(MAKEROM_ARM7_BASE:r)_defs.TWL.LTD.sbin$(COMPSUFFIX7)" - OverlayTable "$(MAKEROM_ARM7_BASE:r)_table.TWL.LTD.sbin$(COMPSUFFIX7)" -} - -Property -{ - ### - ### Settings for FinalROM - ### - #### BEGIN - # - # TITLE NAME: Your product name within 12bytes - # - #TitleName "YourAppName" - - # - # MAKER CODE: Your company ID# in 2 ascii words - # issued by NINTENDO - # - #MakerCode "00" - - # - # REMASTER VERSION: Mastering version - # - #RomVersion 0 - - # - # ROM SPEED TYPE: [MROM/1TROM/UNDEFINED] - # - RomSpeedType $(MAKEROM_ROMSPEED) - - # - # ROM SIZE: in bit [64M/128M/256M/512M/1G/2G] - # - #RomSize 128M - #RomSize 256M - - # - # ROM PADDING: TRUE if finalrom - # - #RomFootPadding TRUE - - # - # ROM HEADER TEMPLATE: Provided to every product by NINTENDO - # - #RomHeaderTemplate ./etc/rom_header.template.sbin - - # - # BANNER FILE: generated from Banner Spec File - # - #BannerFile ./etc/myGameBanner.bnr - BannerFile ../banner/banner.bnr - - ### - ### Setting for TWL - ### - # - # BANNER FILE: - # - BannerTWLFile $(TWLSDK_ROOT)/include/twl/specfiles/default.bnr - - # - # Digest parameters: - # - DigestParam 1024 32 - - # - # WRAM mapping: [MAP_BB_HYB/MAP_BB_LTD/MAP_TS_HYB/MAP_TS_LTD] - # don't have to edit - # - WramMapping $(MAKEROM_WRAM_MAPPING) - - # - # Codec mode: - # don't have to edit - # - CodecMode $(MAKEROM_CODEC_MODE) - - ### - #### END -} - -AppendProperty -{ - # - # Publisher : "Nintendo" - # don't have to edit - Publisher Nintendo - - # - # Application type : [USER/SYSTEM] - # don't have to edit - AppType User - - # - # launch title on the launcher : [TRUE/FALSE] - # don't have to edit - Launch TRUE - - # - # Boot allowed Media: [GameCard/NAND] - # - Media NAND - - # - # GameCode for TitleID : Your GameCode in 4 ascii words - # - GameCode $(TITLEID_LO) - - # - # Public save data size: [16K/32K/64K/128K/256K/512K/1M/2M/4M/8M] - # - #PublicSaveDataSize 32K - - # - # Private save data size: [16K/32K/64K/128K/256K/512K/1M/2M/4M/8M] - # - #PrivateSaveDataSize 16K - - # - # Enable SaveBannerFile - #SaveBannerFile TRUE -} - -RomSpec -{ - Offset 0x00000000 - Segment ALL - HostRoot ../../data - Root /data - File simpleapp.srl -} \ No newline at end of file diff --git a/build/tests/ExecTmpApp/ARM9/src/ExecTmpApp.c b/build/tests/ExecTmpApp/ARM9/src/ExecTmpApp.c deleted file mode 100644 index c51ac8c1..00000000 --- a/build/tests/ExecTmpApp/ARM9/src/ExecTmpApp.c +++ /dev/null @@ -1,173 +0,0 @@ -/*---------------------------------------------------------------------------* - Project: TwlIPL - File: ExecTmpApp.c - - Copyright 2007 Nintendo. All rights reserved. - - These coded instructions, statements, and computer programs contain - proprietary information of Nintendo of America Inc. and/or Nintendo - Company Ltd., and are protected by Federal copyright law. They may - not be disclosed to third parties or copied or duplicated in any form, - in whole or in part, without the prior written consent of Nintendo. - - $Date:: 2007-10-31#$ - $Rev: 91 $ - $Author: yosiokat $ - *---------------------------------------------------------------------------*/ - -#include -#include "misc_simple.h" -#include "ExecTmpApp.h" - -// define data------------------------------------------ - -#define COPB_MENU_ELEMENT_NUM 2 // メニューの項目数 - -// extern data------------------------------------------ - -// function's prototype declaration--------------------- - -static void MenuScene( void ); - -// global variable ------------------------------------- - -// static variable ------------------------------------- -static u16 s_csr = 0; -static void(*s_pNowProcess)(void); - -// const data ----------------------------------------- -static const char *s_pStrMenu[ COPB_MENU_ELEMENT_NUM ] = -{ - "save app to tmp and restart", - "return to launcher", -}; - -static MenuPos s_menuPos[] = { - { TRUE, 3, 6 }, - { TRUE, 3, 8 }, -}; - -static const MenuParam s_menuParam = { - COPB_MENU_ELEMENT_NUM, - TXT_COLOR_BLACK, - TXT_COLOR_GREEN, - TXT_COLOR_RED, - &s_menuPos[ 0 ], - (const char **)&s_pStrMenu, -}; - -//====================================================== -// アプリ連携テストプログラムB -//====================================================== - -static void DrawMenuScene( void ) -{ - myDp_Printf( 1, 0, TXT_COLOR_BLUE, MAIN_SCREEN, "ExecTmpApp"); - // メニュー項目 - myDp_DrawMenu( s_csr, MAIN_SCREEN, &s_menuParam ); -} - -static void MenuInit( void ) -{ - FS_Init(3); - GX_DispOff(); - GXS_DispOff(); - - myDp_Printf( 1, 0, TXT_COLOR_BLUE, MAIN_SCREEN, "ExecTmpApp"); - - s_pNowProcess = MenuScene; - - DrawMenuScene(); - - GX_DispOn(); - GXS_DispOn(); -} - -static void MenuScene(void) -{ - LauncherBootFlags tempflag = {TRUE, LAUNCHER_BOOTTYPE_TEMP, TRUE, FALSE, FALSE, FALSE, 0}; - - //-------------------------------------- - // キー入力処理 - //-------------------------------------- - if( MYPAD_IS_TRIG(PAD_KEY_DOWN) ){ // カーソルの移動 - if( ++s_csr == COPB_MENU_ELEMENT_NUM ) { - s_csr=0; - } - } - if( MYPAD_IS_TRIG(PAD_KEY_UP) ){ - if( --s_csr & 0x80 ) { - s_csr=COPB_MENU_ELEMENT_NUM - 1; - } - } - - DrawMenuScene(); - - if( MYPAD_IS_TRIG(PAD_BUTTON_A) ) { // メニュー項目への分岐 - if( s_menuPos[ s_csr ].enable ) { - u64 targetApp = 0x00030004534d504c;// SMPL - static char destfilename[256]; - s32 len = 0; - s32 llen; - BOOL success = TRUE; - FSFile src,dest; - void *buf; - switch( s_csr ) { - case 0: - - STD_TSNPrintf( destfilename, 31, "nand:/tmp/%.16llx.srl", targetApp ); - // tmpに保存 - FS_DeleteFile(destfilename); - FS_CreateFile(destfilename, FS_PERMIT_R | FS_PERMIT_W); - FS_InitFile( &src ); - FS_InitFile( &dest ); - if ( !FS_OpenFileEx( &src, "rom:/data/simpleapp.srl", FS_FILEMODE_R ) ) success = FALSE; - len = (int)FS_GetFileLength( &src ); - - buf = (void *)0x2400000; - for(llen = 0; llen < len; ) - { - int rd; - rd = FS_ReadFile( &src, buf, len ); - if(rd == -1) - { - success = FALSE; - break; - } - buf = (void *)((u32)buf + rd); - llen += rd; - } - buf = (void *)0x2400000; - if ( !FS_CloseFile( &src ) ) success = FALSE; - if (len != llen) success = FALSE; - - if ( !FS_OpenFileEx( &dest, destfilename, FS_FILEMODE_W ) ) success = FALSE; - llen = FS_WriteFile( &dest, buf, len ); - if ( !FS_CloseFile( &dest ) ) success = FALSE; - if (len != llen) success = FALSE; - - if( !success ) break; - - //アプリ起動 - OS_SetLauncherParamAndResetHardware( 0, targetApp, &tempflag ); - break; - case 1: - OS_SetLauncherParamAndResetHardware( 0, NULL, &tempflag ); - //再起動 - break; - } - } - } -} - -// 初期化 -void ExecTmpAppInit( void ) -{ - MenuInit(); -} - -// メインループ -void ExecTmpAppMain(void) -{ - s_pNowProcess(); -} diff --git a/build/tests/ExecTmpApp/ARM9/src/ExecTmpApp.h b/build/tests/ExecTmpApp/ARM9/src/ExecTmpApp.h deleted file mode 100644 index b4ee250a..00000000 --- a/build/tests/ExecTmpApp/ARM9/src/ExecTmpApp.h +++ /dev/null @@ -1,37 +0,0 @@ -/*---------------------------------------------------------------------------* - Project: TwlIPL - File: ExecTmpApp.h - - Copyright 2007 Nintendo. All rights reserved. - - These coded instructions, statements, and computer programs contain - proprietary information of Nintendo of America Inc. and/or Nintendo - Company Ltd., and are protected by Federal copyright law. They may - not be disclosed to third parties or copied or duplicated in any form, - in whole or in part, without the prior written consent of Nintendo. - - $Date:: 2007-10-30#$ - $Rev: 73 $ - $Author: yosiokat $ - *---------------------------------------------------------------------------*/ - -#ifndef __COOPERATION_B_H__ -#define __COOPERATION_B_H__ - -#ifdef __cplusplus -extern "C" { -#endif - - -#include - -// define data---------------------------------------------------------- - -void ExecTmpAppInit( void ); -void ExecTmpAppMain( void ); - -#ifdef __cplusplus -} -#endif - -#endif // __COOPERATION_B_H__ diff --git a/build/tests/ExecTmpApp/ARM9/src/main.c b/build/tests/ExecTmpApp/ARM9/src/main.c deleted file mode 100644 index ab390290..00000000 --- a/build/tests/ExecTmpApp/ARM9/src/main.c +++ /dev/null @@ -1,68 +0,0 @@ -/*---------------------------------------------------------------------------* - Project: TwlIPL - File: main.c - - Copyright 2007 Nintendo. All rights reserved. - - These coded instructions, statements, and computer programs contain - proprietary information of Nintendo of America Inc. and/or Nintendo - Company Ltd., and are protected by Federal copyright law. They may - not be disclosed to third parties or copied or duplicated in any form, - in whole or in part, without the prior written consent of Nintendo. - - $Date:: 2007-11-27#$ - $Rev: 272 $ - $Author: yosiokat $ - *---------------------------------------------------------------------------*/ - -#include -#include "misc_simple.h" -#include "ExecTmpApp.h" - -// extern data----------------------------------------------------------------- - -// define data----------------------------------------------------------------- - -// function's prototype------------------------------------------------------- -static void INTR_VBlank( void ); - -// global variable------------------------------------------------------------- - -// static variable------------------------------------------------------------- -BOOL g_isValidTSD; - -// const data------------------------------------------------------------------ - - -// ============================================================================ -// function's description -// ============================================================================ -void TwlMain(void) -{ - myInit(); - - ExecTmpAppInit(); - // メインループ---------------------------- - while(1){ - - myPreMain(); - - ExecTmpAppMain(); - - myProMain(); - - OS_WaitIrq(1, OS_IE_V_BLANK); // Vブランク割り込み待ち - } -} - - -// ============================================================================ -// 割り込み処理 -// ============================================================================ - -// Vブランク割り込み -static void INTR_VBlank(void) -{ - OS_SetIrqCheckFlag(OS_IE_V_BLANK); // Vブランク割込チェックのセット -} - diff --git a/build/tests/ExecTmpApp/Makefile b/build/tests/ExecTmpApp/Makefile deleted file mode 100644 index 9cf34e12..00000000 --- a/build/tests/ExecTmpApp/Makefile +++ /dev/null @@ -1,30 +0,0 @@ -#! make -f -#---------------------------------------------------------------------------- -# Project: TwlIPL -# File: Makefile -# -# Copyright 2007 Nintendo. All rights reserved. -# -# These coded instructions, statements, and computer programs contain -# proprietary information of Nintendo of America Inc. and/or Nintendo -# Company Ltd., and are protected by Federal copyright law. They may -# not be disclosed to third parties or copied or duplicated in any form, -# in whole or in part, without the prior written consent of Nintendo. -# -# $Date:: 2007-10-03#$ -# $Rev: 1319 $ -# $Author: kitase_hirotake $ -#---------------------------------------------------------------------------- - -include $(TWLSDK_ROOT)/build/buildtools/commondefs - -#---------------------------------------------------------------------------- - -SUBDIRS = banner ARM9 - -#---------------------------------------------------------------------------- - -include $(TWLSDK_ROOT)/build/buildtools/modulerules - - -#===== End of Makefile ===== diff --git a/build/tests/ExecTmpApp/banner/Makefile b/build/tests/ExecTmpApp/banner/Makefile deleted file mode 100644 index aafe44c2..00000000 --- a/build/tests/ExecTmpApp/banner/Makefile +++ /dev/null @@ -1,50 +0,0 @@ -#! make -f -#---------------------------------------------------------------------------- -# Project: TwlIPL -# File: Makefile -# -# Copyright 2007 Nintendo. All rights reserved. -# -# These coded instructions, statements, and computer programs contain -# proprietary information of Nintendo of America Inc. and/or Nintendo -# Company Ltd., and are protected by Federal copyright law. They may -# not be disclosed to third parties or copied or duplicated in any form, -# in whole or in part, without the prior written consent of Nintendo. -# -# $Date:: 2007-10-03#$ -# $Rev: 1319 $ -# $Author: kitase_hirotake $ -#---------------------------------------------------------------------------- - -include $(TWLSDK_ROOT)/build/buildtools/commondefs -MAKEBANNER = $(TWL_TOOLSDIR)/bin/makebanner.TWL.exe - -ICON_DIR = ./icon - -BANNER_ICON = $(ICON_DIR)/gameIcon.bmp -BANNER_SPEC = banner_v3.bsf - -TARGETS = banner.bnr -INSTALL_DIR = ./ -INSTALL_TARGETS = $(TARGETS) - -BANNER_ICON_NAME = $(basename $(BANNER_ICON)) - -LDIRT_CLEAN = $(TARGETS) \ - $(BANNER_ICON_NAME).nbfs \ - $(BANNER_ICON_NAME).nbfc \ - $(BANNER_ICON_NAME).nbfp \ - $(TARGETS:.bnr=.srl) - -include $(TWLSDK_ROOT)/build/buildtools/modulerules - -#---------------------------------------------------------------------------- -# build -#---------------------------------------------------------------------------- -do-build: $(TARGETS) - -$(TARGETS): $(BANNER_SPEC) $(BANNER_ICON) - $(NTEXCONV) -no -bg -bgb -bgnc $(BANNER_ICON) >/dev/null && \ - $(MAKEBANNER) -d -N $(BANNER_ICON_NAME) $(BANNER_SPEC) $(TARGETS) - -# diff --git a/build/tests/ExecTmpApp/banner/banner_v3.bsf b/build/tests/ExecTmpApp/banner/banner_v3.bsf deleted file mode 100644 index d364b2af..00000000 Binary files a/build/tests/ExecTmpApp/banner/banner_v3.bsf and /dev/null differ diff --git a/build/tests/ExecTmpApp/banner/icon/gameIcon.bmp b/build/tests/ExecTmpApp/banner/icon/gameIcon.bmp deleted file mode 100644 index 588fc8cd..00000000 Binary files a/build/tests/ExecTmpApp/banner/icon/gameIcon.bmp and /dev/null differ diff --git a/build/tests/SimpleApp/ARM9/Makefile b/build/tests/SimpleApp/ARM9/Makefile deleted file mode 100644 index 12b45c85..00000000 --- a/build/tests/SimpleApp/ARM9/Makefile +++ /dev/null @@ -1,61 +0,0 @@ -#! make -f -#---------------------------------------------------------------------------- -# Project: TwlSDK - demos - simpleShoot-1 -# File: Makefile -# -# Copyright 2007 Nintendo. All rights reserved. -# -# These coded instructions, statements, and computer programs contain -# proprietary information of Nintendo of America Inc. and/or Nintendo -# Company Ltd., and are protected by Federal copyright law. They may -# not be disclosed to third parties or copied or duplicated in any form, -# in whole or in part, without the prior written consent of Nintendo. -# -# $Date:: $ -# $Rev: $ -# $Author: $ -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- - -TARGET_PLATFORM = TWL -TWL_ARCHGEN = LIMITED - -TITLEID_LO = SMPL - -TARGET_BIN = simpleapp.srl - -ROM_SPEC = main.rsf - -MISC_DIR = ../../misc -DATA_DIR = ../../data - -SRCS = main.c SimpleApp.c \ - $(MISC_DIR)/misc_simple.c \ - $(DATA_DIR)/data.c - -LINCLUDES = $(TWLSDK_ROOT)/build/demos/gx/UnitTours/DEMOLib/include \ - $(MISC_DIR) \ - $(DATA_DIR) - -LLIBRARY_DIRS += $(TWLSDK_ROOT)/build/demos/gx/UnitTours/DEMOLib/lib/$(TWL_BUILDTYPE) - -LLIBRARIES += libDEMO$(TWL_LIBSUFFIX).a - -MAKEROM_FLAGS += -F -DTITLEID_LO='$(TITLEID_LO)' - -include $(TWLSDK_ROOT)/build/buildtools/commondefs - -INSTALL_TARGETS = $(BINDIR)/$(TARGET_BIN) -INSTALL_DIR = $(DATA_DIR) - -#---------------------------------------------------------------------------- - -do-build : $(TARGETS) - - -include $(TWLSDK_ROOT)/build/buildtools/modulerules - -#---------------------------------------------------------------------------- - -#===== End of Makefile ===== diff --git a/build/tests/SimpleApp/ARM9/main.rsf b/build/tests/SimpleApp/ARM9/main.rsf deleted file mode 100644 index fa4fb30a..00000000 --- a/build/tests/SimpleApp/ARM9/main.rsf +++ /dev/null @@ -1,178 +0,0 @@ -#---------------------------------------------------------------------------- -# Project: TwlSDK - include -# File: ROM-BB.rsf -# -# Copyright 2007 Nintendo. All rights reserved. -# -# These coded insructions, statements, and computer programs contain -# proprietary information of Nintendo of America Inc. and/or Nintendo -# Company Ltd., and are protected by Federal copyright law. They may -# not be disclosed to third parties or copied or duplicated in any form, -# in whole or in part, without the prior written consent of Nintendo. -# -# $Date:: 2007-11-21#$ -# $Rev: 240 $ -# $Author: yosiokat $ -#---------------------------------------------------------------------------- -# -# TWL ROM SPEC FILE -# - -Arm9 -{ - Static "$(MAKEROM_ARM9:r).TWL.FLX.sbin$(COMPSUFFIX9)" - OverlayDefs "$(MAKEROM_ARM9:r)_defs.TWL.FLX.sbin$(COMPSUFFIX9)" - OverlayTable "$(MAKEROM_ARM9:r)_table.TWL.FLX.sbin$(COMPSUFFIX9)" - Elf "$(MAKEROM_ARM9:r).tef" -} - -Arm7 -{ - Static "$(MAKEROM_ARM7_BASE:r).TWL.FLX.sbin$(COMPSUFFIX7)" - OverlayDefs "$(MAKEROM_ARM7_BASE:r)_defs.TWL.FLX.sbin$(COMPSUFFIX7)" - OverlayTable "$(MAKEROM_ARM7_BASE:r)_table.TWL.FLX.sbin$(COMPSUFFIX7)" - Elf "$(MAKEROM_ARM7_BASE:r).tef" -} - -Arm9.Ltd -{ - Static "$(MAKEROM_ARM9:r).TWL.LTD.sbin$(COMPSUFFIX9)" - OverlayDefs "$(MAKEROM_ARM9:r)_defs.TWL.LTD.sbin$(COMPSUFFIX9)" - OverlayTable "$(MAKEROM_ARM9:r)_table.TWL.LTD.sbin$(COMPSUFFIX9)" -} - -Arm7.Ltd -{ - Static "$(MAKEROM_ARM7_BASE:r).TWL.LTD.sbin$(COMPSUFFIX7)" - OverlayDefs "$(MAKEROM_ARM7_BASE:r)_defs.TWL.LTD.sbin$(COMPSUFFIX7)" - OverlayTable "$(MAKEROM_ARM7_BASE:r)_table.TWL.LTD.sbin$(COMPSUFFIX7)" -} - -Property -{ - ### - ### Settings for FinalROM - ### - #### BEGIN - # - # TITLE NAME: Your product name within 12bytes - # - #TitleName "YourAppName" - - #_GameCode $(TITLEID_LO) - - # - # MAKER CODE: Your company ID# in 2 ascii words - # issued by NINTENDO - # - #MakerCode "00" - - # - # REMASTER VERSION: Mastering version - # - #RomVersion 0 - - # - # ROM SPEED TYPE: [MROM/1TROM/UNDEFINED] - # - RomSpeedType $(MAKEROM_ROMSPEED) - - # - # ROM SIZE: in bit [64M/128M/256M/512M/1G/2G] - # - #RomSize 128M - #RomSize 256M - - # - # ROM PADDING: TRUE if finalrom - # - #RomFootPadding TRUE - - # - # ROM HEADER TEMPLATE: Provided to every product by NINTENDO - # - #RomHeaderTemplate ./etc/rom_header.template.sbin - - # - # BANNER FILE: generated from Banner Spec File - # - BannerFile ../banner/banner.bnr - - ### - ### Setting for TWL - ### - # - # BANNER FILE: - # - BannerTWLFile $(TWLSDK_ROOT)/include/twl/specfiles/default.bnr - - # - # Digest parameters: - # - DigestParam 1024 32 - - # - # WRAM mapping: [MAP_BB_HYB/MAP_BB_LTD/MAP_TS_HYB/MAP_TS_LTD] - # don't have to edit - # - WramMapping $(MAKEROM_WRAM_MAPPING) - - # - # Codec mode: - # don't have to edit - # - CodecMode $(MAKEROM_CODEC_MODE) - - ### - #### END -} - - -AppendProperty -{ - # - # Publisher : "Nintendo" - # don't have to edit - Publisher Nintendo - - # - # Application type : [USER/SYSTEM] - # don't have to edit - AppType User - - # - # launch title on the launcher : [TRUE/FALSE] - # don't have to edit - Launch TRUE - - # - # Boot allowed Media: [GameCard/NAND] - # - Media NAND - - # - # GameCode for TitleID : Your GameCode in 4 ascii words - # - GameCode $(TITLEID_LO) - - # - # Public save data size: [16K/32K/64K/128K/256K/512K/1M/2M/4M/8M] - # - #PublicSaveDataSize 32K - - # - # Private save data size: [16K/32K/64K/128K/256K/512K/1M/2M/4M/8M] - # - #PrivateSaveDataSize 16K - - # - # Enable SaveBannerFile - SaveBannerFile FALSE -} - - -RomSpec -{ - Offset 0x00000000 - Segment ALL -} diff --git a/build/tests/SimpleApp/ARM9/src/SimpleApp.c b/build/tests/SimpleApp/ARM9/src/SimpleApp.c deleted file mode 100644 index d6ad601a..00000000 --- a/build/tests/SimpleApp/ARM9/src/SimpleApp.c +++ /dev/null @@ -1,125 +0,0 @@ -/*---------------------------------------------------------------------------* - Project: TwlIPL - File: SimpleApp.c - - Copyright 2007 Nintendo. All rights reserved. - - These coded instructions, statements, and computer programs contain - proprietary information of Nintendo of America Inc. and/or Nintendo - Company Ltd., and are protected by Federal copyright law. They may - not be disclosed to third parties or copied or duplicated in any form, - in whole or in part, without the prior written consent of Nintendo. - - $Date:: 2007-10-31#$ - $Rev: 91 $ - $Author: yosiokat $ - *---------------------------------------------------------------------------*/ - -#include -#include "misc_simple.h" -#include "SimpleApp.h" - -// define data------------------------------------------ - -#define COPB_MENU_ELEMENT_NUM 1 // メニューの項目数 - -// extern data------------------------------------------ - -// function's prototype declaration--------------------- - -static void MenuScene( void ); - -// global variable ------------------------------------- - -// static variable ------------------------------------- -static u16 s_csr = 0; -static void(*s_pNowProcess)(void); - -// const data ----------------------------------------- -static const char *s_pStrMenu[ COPB_MENU_ELEMENT_NUM ] = -{ - "return to launcher", -}; - -static MenuPos s_menuPos[] = { - { TRUE, 3, 8 }, -}; - -static const MenuParam s_menuParam = { - COPB_MENU_ELEMENT_NUM, - TXT_COLOR_BLACK, - TXT_COLOR_GREEN, - TXT_COLOR_RED, - &s_menuPos[ 0 ], - (const char **)&s_pStrMenu, -}; - -//====================================================== -// アプリ連携テストプログラムB -//====================================================== - -static void DrawMenuScene( void ) -{ - myDp_Printf( 1, 0, TXT_COLOR_BLUE, MAIN_SCREEN, "SimpleApp"); - // メニュー項目 - myDp_DrawMenu( s_csr, MAIN_SCREEN, &s_menuParam ); -} - -static void MenuInit( void ) -{ - GX_DispOff(); - GXS_DispOff(); - - myDp_Printf( 1, 0, TXT_COLOR_BLUE, MAIN_SCREEN, "SimpleApp"); - - s_pNowProcess = MenuScene; - - DrawMenuScene(); - - GX_DispOn(); - GXS_DispOn(); -} - -static void MenuScene(void) -{ - LauncherBootFlags tempflag = {TRUE, OS_BOOTTYPE_NAND, TRUE, FALSE, FALSE, FALSE, 0}; - - //-------------------------------------- - // キー入力処理 - //-------------------------------------- - if( MYPAD_IS_TRIG(PAD_KEY_DOWN) ){ // カーソルの移動 - if( ++s_csr == COPB_MENU_ELEMENT_NUM ) { - s_csr=0; - } - } - if( MYPAD_IS_TRIG(PAD_KEY_UP) ){ - if( --s_csr & 0x80 ) { - s_csr=COPB_MENU_ELEMENT_NUM - 1; - } - } - - DrawMenuScene(); - - if( MYPAD_IS_TRIG(PAD_BUTTON_A) ) { // メニュー項目への分岐 - if( s_menuPos[ s_csr ].enable ) { - switch( s_csr ) { - case 0: - OS_SetLauncherParamAndResetHardware( 0, NULL, &tempflag ); - //再起動 - break; - } - } - } -} - -// 初期化 -void SimpleAppInit( void ) -{ - MenuInit(); -} - -// メインループ -void SimpleAppMain(void) -{ - s_pNowProcess(); -} diff --git a/build/tests/SimpleApp/ARM9/src/SimpleApp.h b/build/tests/SimpleApp/ARM9/src/SimpleApp.h deleted file mode 100644 index 1131e15b..00000000 --- a/build/tests/SimpleApp/ARM9/src/SimpleApp.h +++ /dev/null @@ -1,37 +0,0 @@ -/*---------------------------------------------------------------------------* - Project: TwlIPL - File: SimpleApp.h - - Copyright 2007 Nintendo. All rights reserved. - - These coded instructions, statements, and computer programs contain - proprietary information of Nintendo of America Inc. and/or Nintendo - Company Ltd., and are protected by Federal copyright law. They may - not be disclosed to third parties or copied or duplicated in any form, - in whole or in part, without the prior written consent of Nintendo. - - $Date:: 2007-10-30#$ - $Rev: 73 $ - $Author: yosiokat $ - *---------------------------------------------------------------------------*/ - -#ifndef __SIMPLEAPP_H__ -#define __SIMPLEAPP_H__ - -#ifdef __cplusplus -extern "C" { -#endif - - -#include - -// define data---------------------------------------------------------- - -void SimpleAppInit( void ); -void SimpleAppMain( void ); - -#ifdef __cplusplus -} -#endif - -#endif // __SIMPLEAPP_H__ diff --git a/build/tests/SimpleApp/ARM9/src/main.c b/build/tests/SimpleApp/ARM9/src/main.c deleted file mode 100644 index fd69843d..00000000 --- a/build/tests/SimpleApp/ARM9/src/main.c +++ /dev/null @@ -1,68 +0,0 @@ -/*---------------------------------------------------------------------------* - Project: TwlIPL - File: main.c - - Copyright 2007 Nintendo. All rights reserved. - - These coded instructions, statements, and computer programs contain - proprietary information of Nintendo of America Inc. and/or Nintendo - Company Ltd., and are protected by Federal copyright law. They may - not be disclosed to third parties or copied or duplicated in any form, - in whole or in part, without the prior written consent of Nintendo. - - $Date:: 2007-11-27#$ - $Rev: 272 $ - $Author: yosiokat $ - *---------------------------------------------------------------------------*/ - -#include -#include "misc_simple.h" -#include "SimpleApp.h" - -// extern data----------------------------------------------------------------- - -// define data----------------------------------------------------------------- - -// function's prototype------------------------------------------------------- -static void INTR_VBlank( void ); - -// global variable------------------------------------------------------------- - -// static variable------------------------------------------------------------- -BOOL g_isValidTSD; - -// const data------------------------------------------------------------------ - - -// ============================================================================ -// function's description -// ============================================================================ -void TwlMain(void) -{ - myInit(); - - SimpleAppInit(); - // メインループ---------------------------- - while(1){ - - myPreMain(); - - SimpleAppMain(); - - myProMain(); - - OS_WaitIrq(1, OS_IE_V_BLANK); // Vブランク割り込み待ち - } -} - - -// ============================================================================ -// 割り込み処理 -// ============================================================================ - -// Vブランク割り込み -static void INTR_VBlank(void) -{ - OS_SetIrqCheckFlag(OS_IE_V_BLANK); // Vブランク割込チェックのセット -} - diff --git a/build/tests/SimpleApp/Makefile b/build/tests/SimpleApp/Makefile deleted file mode 100644 index 9cf34e12..00000000 --- a/build/tests/SimpleApp/Makefile +++ /dev/null @@ -1,30 +0,0 @@ -#! make -f -#---------------------------------------------------------------------------- -# Project: TwlIPL -# File: Makefile -# -# Copyright 2007 Nintendo. All rights reserved. -# -# These coded instructions, statements, and computer programs contain -# proprietary information of Nintendo of America Inc. and/or Nintendo -# Company Ltd., and are protected by Federal copyright law. They may -# not be disclosed to third parties or copied or duplicated in any form, -# in whole or in part, without the prior written consent of Nintendo. -# -# $Date:: 2007-10-03#$ -# $Rev: 1319 $ -# $Author: kitase_hirotake $ -#---------------------------------------------------------------------------- - -include $(TWLSDK_ROOT)/build/buildtools/commondefs - -#---------------------------------------------------------------------------- - -SUBDIRS = banner ARM9 - -#---------------------------------------------------------------------------- - -include $(TWLSDK_ROOT)/build/buildtools/modulerules - - -#===== End of Makefile ===== diff --git a/build/tests/SimpleApp/banner/Makefile b/build/tests/SimpleApp/banner/Makefile deleted file mode 100644 index aafe44c2..00000000 --- a/build/tests/SimpleApp/banner/Makefile +++ /dev/null @@ -1,50 +0,0 @@ -#! make -f -#---------------------------------------------------------------------------- -# Project: TwlIPL -# File: Makefile -# -# Copyright 2007 Nintendo. All rights reserved. -# -# These coded instructions, statements, and computer programs contain -# proprietary information of Nintendo of America Inc. and/or Nintendo -# Company Ltd., and are protected by Federal copyright law. They may -# not be disclosed to third parties or copied or duplicated in any form, -# in whole or in part, without the prior written consent of Nintendo. -# -# $Date:: 2007-10-03#$ -# $Rev: 1319 $ -# $Author: kitase_hirotake $ -#---------------------------------------------------------------------------- - -include $(TWLSDK_ROOT)/build/buildtools/commondefs -MAKEBANNER = $(TWL_TOOLSDIR)/bin/makebanner.TWL.exe - -ICON_DIR = ./icon - -BANNER_ICON = $(ICON_DIR)/gameIcon.bmp -BANNER_SPEC = banner_v3.bsf - -TARGETS = banner.bnr -INSTALL_DIR = ./ -INSTALL_TARGETS = $(TARGETS) - -BANNER_ICON_NAME = $(basename $(BANNER_ICON)) - -LDIRT_CLEAN = $(TARGETS) \ - $(BANNER_ICON_NAME).nbfs \ - $(BANNER_ICON_NAME).nbfc \ - $(BANNER_ICON_NAME).nbfp \ - $(TARGETS:.bnr=.srl) - -include $(TWLSDK_ROOT)/build/buildtools/modulerules - -#---------------------------------------------------------------------------- -# build -#---------------------------------------------------------------------------- -do-build: $(TARGETS) - -$(TARGETS): $(BANNER_SPEC) $(BANNER_ICON) - $(NTEXCONV) -no -bg -bgb -bgnc $(BANNER_ICON) >/dev/null && \ - $(MAKEBANNER) -d -N $(BANNER_ICON_NAME) $(BANNER_SPEC) $(TARGETS) - -# diff --git a/build/tests/SimpleApp/banner/banner_v3.bsf b/build/tests/SimpleApp/banner/banner_v3.bsf deleted file mode 100644 index d602c7f8..00000000 Binary files a/build/tests/SimpleApp/banner/banner_v3.bsf and /dev/null differ diff --git a/build/tests/SimpleApp/banner/icon/gameIcon.bmp b/build/tests/SimpleApp/banner/icon/gameIcon.bmp deleted file mode 100644 index 71221647..00000000 Binary files a/build/tests/SimpleApp/banner/icon/gameIcon.bmp and /dev/null differ diff --git a/build/tests/data/data.c b/build/tests/data/data.c deleted file mode 100644 index caf8429f..00000000 --- a/build/tests/data/data.c +++ /dev/null @@ -1,620 +0,0 @@ -/*---------------------------------------------------------------------------* - Project: TwlSDK - demos.TWL - nandApp - ExecPreLoadedApp - File: data.c - - Copyright 2007 Nintendo. All rights reserved. - - These coded instructions, statements, and computer programs contain - proprietary information of Nintendo of America Inc. and/or Nintendo - Company Ltd., and are protected by Federal copyright law. They may - not be disclosed to third parties or copied or duplicated in any form, - in whole or in part, without the prior written consent of Nintendo. - - $Date:: 2007-08-29#$ - $Rev: 640 $ - $Author: kitase_hirotake $ - *---------------------------------------------------------------------------*/ - -#include "data.h" - -/*---------------------- Palette Data ---------------------------*/ -const unsigned int d_64_256_bg_sclDT[8 * 16] = { - 0x0000ffff, 0x00000000, 0x00000000, 0x00000000, // black - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x001f001e, 0x001d001c, 0x001b001a, 0x00190018, // red - 0x00170016, 0x00150014, 0x00130012, 0x00110010, - 0x03e00000, 0x00000000, 0x00000000, 0x00000000, // green - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x7c000000, 0x00000000, 0x00000000, 0x00000000, // blue - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x03ff0000, 0x00000000, 0x00000000, 0x00000000, // yellow - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x7c1f0000, 0x00000000, 0x00000000, 0x00000000, // purple - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x7fe00000, 0x00000000, 0x00000000, 0x00000000, // light blue - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x000f000e, 0x000d000c, 0x000b000a, 0x00090008, // dark red - 0x00070006, 0x00050004, 0x00030002, 0x00010000, - 0x03000000, 0x00000000, 0x00000000, 0x00000000, // dark green - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x60000000, 0x00000000, 0x00000000, 0x00000000, // dark blue - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x03180000, 0x00000000, 0x00000000, 0x00000000, // dark yellow - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x60180000, 0x00000000, 0x00000000, 0x00000000, // dark purple - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x63000000, 0x00000000, 0x00000000, 0x00000000, // dark light blue - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x56b50000, 0x00000000, 0x00000000, 0x00000000, // gray - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x2d6b0000, 0x00000000, 0x00000000, 0x00000000, // dark gray - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x7fff0000, 0x00000000, 0x00000000, 0x00000000, // white - 0x00000000, 0x00000000, 0x00000000, 0x00000000 -}; - -/*---------------------- Character Data -------------------------*/ -const unsigned int d_64_256_bg_schDT[8 * 256] = { - 0x00000000, 0x00000000, 0x00000000, 0x00000000, // 0000h - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x01010010, 0x01010010, 0x00000110, // 0001h - 0x00011010, 0x01100010, 0x00000010, 0x00000010, - 0x00000000, 0x01011010, 0x01010010, 0x00010010, // 0002h - 0x00100010, 0x00100010, 0x00100001, 0x00100001, - 0x00000000, 0x01010001, 0x01010001, 0x01111111, // 0003h - 0x00000001, 0x00000001, 0x00000001, 0x01111110, - 0x00000000, 0x01010000, 0x01111111, 0x00100000, // 0004h - 0x00100000, 0x00010000, 0x00001000, 0x00000110, - 0x00000000, 0x01010000, 0x01010100, 0x00001010, // 0005h - 0x00010001, 0x00100001, 0x01000000, 0x00000000, - 0x00000000, 0x01011000, 0x01011000, 0x01111111, // 0006h - 0x00001000, 0x00101010, 0x01001010, 0x01001001, - 0x00000000, 0x01010010, 0x01101111, 0x01010010, // 0007h - 0x00010010, 0x00010010, 0x00010010, 0x00001001, - 0x00000000, 0x01010010, 0x01011111, 0x00000100, // 0008h - 0x00011111, 0x00001000, 0x00000001, 0x00011110, - 0x00000000, 0x01010000, 0x01011000, 0x00000110, // 0009h - 0x00000001, 0x00000110, 0x00011000, 0x00100000, - 0x00000000, 0x01010000, 0x01111101, 0x00010001, // 000ah - 0x00010001, 0x00010001, 0x00010001, 0x00001010, - 0x00000000, 0x01010000, 0x01011110, 0x00100000, // 000bh - 0x00000000, 0x00000001, 0x00000001, 0x00111110, - 0x00000000, 0x01010100, 0x01011111, 0x00001000, // 000ch - 0x00010000, 0x00000001, 0x00000001, 0x00011110, - 0x00000000, 0x01010001, 0x01010001, 0x00000001, // 000dh - 0x01000001, 0x01000001, 0x00100010, 0x00011100, - 0x00000000, 0x01010000, 0x01111111, 0x00011000, // 000eh - 0x00010100, 0x00010100, 0x00011000, 0x00001100, - 0x00000000, 0x01010010, 0x01111111, 0x00010010, // 000fh - 0x00010010, 0x00000010, 0x00000010, 0x00111100, - 0x00000000, 0x00001110, 0x01010100, 0x01010010, // 0010h - 0x00111111, 0x00000100, 0x00000100, 0x00011000, - 0x00000000, 0x01010100, 0x01011111, 0x00000100, // 0011h - 0x01110100, 0x00000010, 0x00001010, 0x01110010, - 0x00000000, 0x01010100, 0x01011111, 0x00000010, // 0012h - 0x00011110, 0x00100001, 0x00100000, 0x00011110, - 0x00000000, 0x01010000, 0x01011100, 0x00100011, // 0013h - 0x01000000, 0x01000000, 0x00100000, 0x00011100, - 0x00000000, 0x01010000, 0x01111111, 0x00010000, // 0014h - 0x00001000, 0x00001000, 0x00001000, 0x00110000, - 0x00000000, 0x01010010, 0x01010010, 0x00001100, // 0015h - 0x00000010, 0x00000001, 0x00000001, 0x00111110, - 0x00000000, 0x01010001, 0x01111101, 0x00010001, // 0016h - 0x00010001, 0x00111001, 0x01010101, 0x00011001, - 0x00000000, 0x01010100, 0x01010011, 0x01110010, // 0017h - 0x00010001, 0x00010001, 0x00001010, 0x00000100, - 0x00000000, 0x01011110, 0x01011000, 0x00000100, // 0018h - 0x00101001, 0x01010001, 0x01010001, 0x00001100, - 0x00000000, 0x01010000, 0x01011100, 0x00010010, // 0019h - 0x00010010, 0x00100001, 0x01000000, 0x00000000, - 0x00000000, 0x01011101, 0x01010001, 0x00111101, // 001ah - 0x00010001, 0x00011001, 0x00110101, 0x00001001, - 0x00000000, 0x01110001, 0x01011101, 0x00110001, // 001bh - 0x00010001, 0x00111001, 0x01010101, 0x00011001, - 0x00000000, 0x01110100, 0x01010011, 0x00110010, // 001ch - 0x00010001, 0x00010001, 0x00001010, 0x00000100, - 0x00000000, 0x01101110, 0x01011000, 0x00100100, // 001dh - 0x00101001, 0x01010001, 0x01010001, 0x00001100, - 0x00000000, 0x01110000, 0x01011100, 0x00110010, // 001eh - 0x00010010, 0x00100001, 0x01000000, 0x00000000, - 0x00000000, 0x01111101, 0x01010001, 0x00111101, // 001fh - 0x00010001, 0x00011001, 0x00110101, 0x00001001, - 0x00000000, 0x00000000, 0x00000000, 0x00000000, // 0020h - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x00001000, 0x00001000, 0x00001000, // 0021h - 0x00001000, 0x00001000, 0x00000000, 0x00001000, - 0x00000000, 0x01101100, 0x01001000, 0x00100100, // 0022h - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x00100100, 0x01111111, 0x00100100, // 0023h - 0x00100100, 0x01111111, 0x00010010, 0x00010010, - 0x00000000, 0x00001000, 0x01111110, 0x00001001, // 0024h - 0x00111110, 0x01001000, 0x00111111, 0x00001000, - 0x00000000, 0x01000010, 0x00100101, 0x00010010, // 0025h - 0x00001000, 0x00100100, 0x01010010, 0x00100001, - 0x00000000, 0x00001110, 0x00010001, 0x00001001, // 0026h - 0x01000110, 0x00101001, 0x00110001, 0x01001110, - 0x00000000, 0x00011000, 0x00010000, 0x00001000, // 0027h - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x01110000, 0x00001000, 0x00000100, // 0028h - 0x00000100, 0x00000100, 0x00001000, 0x01110000, - 0x00000000, 0x00000111, 0x00001000, 0x00010000, // 0029h - 0x00010000, 0x00010000, 0x00001000, 0x00000111, - 0x00000000, 0x00001000, 0x01001001, 0x00101010, // 002ah - 0x00011100, 0x00101010, 0x01001001, 0x00001000, - 0x00000000, 0x00001000, 0x00001000, 0x00001000, // 002bh - 0x01111111, 0x00001000, 0x00001000, 0x00001000, - 0x00000000, 0x00000000, 0x00000000, 0x00000000, // 002ch - 0x00000000, 0x00001100, 0x00001000, 0x00000100, - 0x00000000, 0x00000000, 0x00000000, 0x00000000, // 002dh - 0x01111111, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x00000000, 0x00000000, 0x00000000, // 002eh - 0x00000000, 0x00000000, 0x00000000, 0x00001100, - 0x00000000, 0x01000000, 0x00100000, 0x00010000, // 002fh - 0x00001000, 0x00000100, 0x00000010, 0x00000001, - 0x00000000, 0x00111110, 0x01000001, 0x01000001, // 0030h - 0x01000001, 0x01000001, 0x01000001, 0x00111110, - 0x00000000, 0x00011100, 0x00010000, 0x00010000, // 0031h - 0x00010000, 0x00010000, 0x00010000, 0x00010000, - 0x00000000, 0x00111110, 0x01000001, 0x01000000, // 0032h - 0x00111110, 0x00000001, 0x00000001, 0x01111111, - 0x00000000, 0x00111110, 0x01000001, 0x01000000, // 0033h - 0x00111110, 0x01000000, 0x01000001, 0x00111110, - 0x00000000, 0x00100000, 0x00110000, 0x00101000, // 0034h - 0x00100100, 0x00100010, 0x01111111, 0x00100000, - 0x00000000, 0x01111111, 0x00000001, 0x00111111, // 0035h - 0x01000000, 0x01000000, 0x01000001, 0x00111110, - 0x00000000, 0x00111110, 0x00000001, 0x00111111, // 0036h - 0x01000001, 0x01000001, 0x01000001, 0x00111110, - 0x00000000, 0x01111111, 0x00100000, 0x00100000, // 0037h - 0x00010000, 0x00010000, 0x00001000, 0x00001000, - 0x00000000, 0x00111110, 0x01000001, 0x01000001, // 0038h - 0x00111110, 0x01000001, 0x01000001, 0x00111110, - 0x00000000, 0x00111110, 0x01000001, 0x01000001, // 0039h - 0x01000001, 0x01111110, 0x01000000, 0x00111110, - 0x00000000, 0x00000000, 0x00001100, 0x00000000, // 003ah - 0x00000000, 0x00000000, 0x00001100, 0x00000000, - 0x00000000, 0x00000000, 0x00001100, 0x00000000, // 003bh - 0x00000000, 0x00001100, 0x00001000, 0x00000100, - 0x00000000, 0x01100000, 0x00011000, 0x00000110, // 003ch - 0x00000001, 0x00000110, 0x00011000, 0x01100000, - 0x00000000, 0x00000000, 0x01111111, 0x00000000, // 003dh - 0x00000000, 0x00000000, 0x01111111, 0x00000000, - 0x00000000, 0x00000011, 0x00001100, 0x00110000, // 003eh - 0x01000000, 0x00110000, 0x00001100, 0x00000011, - 0x00000000, 0x00111110, 0x01000001, 0x01000001, // 003fh - 0x00110000, 0x00001000, 0x00000000, 0x00001000, - 0x00000000, 0x00011100, 0x00100010, 0x01001001, // 0040h - 0x01010101, 0x01010101, 0x01010101, 0x00111010, - 0x00000000, 0x00001000, 0x00010100, 0x00010100, // 0041h - 0x00100010, 0x00111110, 0x01000001, 0x01000001, - 0x00000000, 0x00111111, 0x01000001, 0x01000001, // 0042h - 0x00111111, 0x01000001, 0x01000001, 0x00111111, - 0x00000000, 0x00111100, 0x01000010, 0x00000001, // 0043h - 0x00000001, 0x00000001, 0x01000010, 0x00111100, - 0x00000000, 0x00011111, 0x00100001, 0x01000001, // 0044h - 0x01000001, 0x01000001, 0x00100001, 0x00011111, - 0x00000000, 0x01111111, 0x00000001, 0x00000001, // 0045h - 0x01111111, 0x00000001, 0x00000001, 0x01111111, - 0x00000000, 0x01111111, 0x00000001, 0x00000001, // 0046h - 0x00111111, 0x00000001, 0x00000001, 0x00000001, - 0x00000000, 0x00111100, 0x01000010, 0x00000001, // 0047h - 0x01111001, 0x01000001, 0x01000010, 0x00111100, - 0x00000000, 0x01000001, 0x01000001, 0x01000001, // 0048h - 0x01111111, 0x01000001, 0x01000001, 0x01000001, - 0x00000000, 0x00111110, 0x00001000, 0x00001000, // 0049h - 0x00001000, 0x00001000, 0x00001000, 0x00111110, - 0x00000000, 0x01000000, 0x01000000, 0x01000000, // 004ah - 0x01000001, 0x01000001, 0x00100010, 0x00011100, - 0x00000000, 0x01100001, 0x00011001, 0x00000101, // 004bh - 0x00000011, 0x00000101, 0x00011001, 0x01100001, - 0x00000000, 0x00000001, 0x00000001, 0x00000001, // 004ch - 0x00000001, 0x00000001, 0x00000001, 0x01111111, - 0x00000000, 0x01000001, 0x01100011, 0x01010101, // 004dh - 0x01001001, 0x01000001, 0x01000001, 0x01000001, - 0x00000000, 0x01000001, 0x01000011, 0x01000101, // 004eh - 0x01001001, 0x01010001, 0x01100001, 0x01000001, - 0x00000000, 0x00011100, 0x00100010, 0x01000001, // 004fh - 0x01000001, 0x01000001, 0x00100010, 0x00011100, - 0x00000000, 0x00111111, 0x01000001, 0x01000001, // 0050h - 0x00111111, 0x00000001, 0x00000001, 0x00000001, - 0x00000000, 0x00011100, 0x00100010, 0x01000001, // 0051h - 0x01000001, 0x01011001, 0x00100010, 0x01011100, - 0x00000000, 0x00111111, 0x01000001, 0x01000001, // 0052h - 0x00111111, 0x01000001, 0x01000001, 0x01000001, - 0x00000000, 0x00111110, 0x01000001, 0x00000001, // 0053h - 0x00111110, 0x01000000, 0x01000001, 0x00111110, - 0x00000000, 0x01111111, 0x00001000, 0x00001000, // 0054h - 0x00001000, 0x00001000, 0x00001000, 0x00001000, - 0x00000000, 0x01000001, 0x01000001, 0x01000001, // 0055h - 0x01000001, 0x01000001, 0x00100010, 0x00011100, - 0x00000000, 0x01000001, 0x01000001, 0x00100010, // 0056h - 0x00100010, 0x00010100, 0x00010100, 0x00001000, - 0x00000000, 0x01000001, 0x01000001, 0x01000001, // 0057h - 0x01001001, 0x01010101, 0x01100011, 0x01000001, - 0x00000000, 0x01000001, 0x00100010, 0x00010100, // 0058h - 0x00001000, 0x00010100, 0x00100010, 0x01000001, - 0x00000000, 0x01000001, 0x00100010, 0x00010100, // 0059h - 0x00001000, 0x00001000, 0x00001000, 0x00001000, - 0x00000000, 0x01111111, 0x00100000, 0x00010000, // 005ah - 0x00001000, 0x00000100, 0x00000010, 0x01111111, - 0x00000000, 0x01111100, 0x00000100, 0x00000100, // 005bh - 0x00000100, 0x00000100, 0x00000100, 0x01111100, - 0x00000000, 0x00100010, 0x00010100, 0x00111110, // 005ch - 0x00001000, 0x00111110, 0x00001000, 0x00001000, - 0x00000000, 0x00011111, 0x00010000, 0x00010000, // 005dh - 0x00010000, 0x00010000, 0x00010000, 0x00011111, - 0x00000000, 0x00001000, 0x00010100, 0x00100010, // 005eh - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x00000000, 0x00000000, 0x00000000, // 005fh - 0x00000000, 0x00000000, 0x00000000, 0x01111111, - 0x00000000, 0x00010000, 0x00001000, 0x00011000, // 0060h - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x00000000, 0x00011110, 0x00100001, // 0061h - 0x00111110, 0x00100001, 0x00100001, 0x01011110, - 0x00000000, 0x00000001, 0x00000001, 0x00111111, // 0062h - 0x01000001, 0x01000001, 0x01000001, 0x00111111, - 0x00000000, 0x00000000, 0x00111100, 0x01000010, // 0063h - 0x00000001, 0x00000001, 0x01000010, 0x00111100, - 0x00000000, 0x01000000, 0x01000000, 0x01111110, // 0064h - 0x01000001, 0x01000001, 0x01000001, 0x01111110, - 0x00000000, 0x00000000, 0x00111110, 0x01000001, // 0065h - 0x01111111, 0x00000001, 0x01000001, 0x00111110, - 0x00000000, 0x00110000, 0x00001000, 0x00001000, // 0066h - 0x01111111, 0x00001000, 0x00001000, 0x00001000, - 0x00000000, 0x00000000, 0x01111110, 0x01000001, // 0067h - 0x01000001, 0x01111110, 0x01000000, 0x00111110, - 0x00000000, 0x00000001, 0x00000001, 0x00000001, // 0068h - 0x00111111, 0x01000001, 0x01000001, 0x01000001, - 0x00000000, 0x00001000, 0x00000000, 0x00001000, // 0069h - 0x00001000, 0x00001000, 0x00001000, 0x00001000, - 0x00000000, 0x00100000, 0x00000000, 0x00100000, // 006ah - 0x00100000, 0x00100001, 0x00100001, 0x00011110, - 0x00000000, 0x00000001, 0x00000001, 0x01100001, // 006bh - 0x00011001, 0x00000111, 0x00011001, 0x01100001, - 0x00000000, 0x00001000, 0x00001000, 0x00001000, // 006ch - 0x00001000, 0x00001000, 0x00001000, 0x00001000, - 0x00000000, 0x00000000, 0x00110111, 0x01001001, // 006dh - 0x01001001, 0x01001001, 0x01001001, 0x01001001, - 0x00000000, 0x00000000, 0x00111111, 0x01000001, // 006eh - 0x01000001, 0x01000001, 0x01000001, 0x01000001, - 0x00000000, 0x00000000, 0x00011100, 0x00100010, // 006fh - 0x01000001, 0x01000001, 0x00100010, 0x00011100, - 0x00000000, 0x00000000, 0x00111101, 0x01000011, // 0070h - 0x01000001, 0x01000011, 0x00111101, 0x00000001, - 0x00000000, 0x00000000, 0x01011110, 0x01100001, // 0071h - 0x01000001, 0x01100001, 0x01011110, 0x01000000, - 0x00000000, 0x00000000, 0x00110001, 0x00001101, // 0072h - 0x00000011, 0x00000001, 0x00000001, 0x00000001, - 0x00000000, 0x00000000, 0x00111110, 0x01000001, // 0073h - 0x00001110, 0x00110000, 0x01000001, 0x00111110, - 0x00000000, 0x00000100, 0x00000100, 0x01111111, // 0074h - 0x00000100, 0x00000100, 0x00000100, 0x01111000, - 0x00000000, 0x00000000, 0x01000001, 0x01000001, // 0075h - 0x01000001, 0x01000001, 0x01000001, 0x01111110, - 0x00000000, 0x00000000, 0x01000001, 0x01000001, // 0076h - 0x00100010, 0x00100010, 0x00010100, 0x00001000, - 0x00000000, 0x00000000, 0x01000001, 0x01000001, // 0077h - 0x01001001, 0x00101010, 0x00101010, 0x00010100, - 0x00000000, 0x00000000, 0x00100001, 0x00010010, // 0078h - 0x00001100, 0x00001100, 0x00010010, 0x00100001, - 0x00000000, 0x00000000, 0x01000001, 0x01000001, // 0079h - 0x00100010, 0x00011100, 0x00001000, 0x00000110, - 0x00000000, 0x00000000, 0x00111111, 0x00010000, // 007ah - 0x00001000, 0x00000100, 0x00000010, 0x00111111, - 0x00000000, 0x00001000, 0x00011110, 0x01100100, // 007bh - 0x00011000, 0x00100100, 0x00000100, 0x01111000, - 0x00000000, 0x00000000, 0x00011110, 0x00000100, // 007ch - 0x00011110, 0x00110101, 0x00101101, 0x00010010, - 0x00000000, 0x00000000, 0x00000000, 0x00010001, // 007dh - 0x00100001, 0x00100001, 0x00000001, 0x00000010, - 0x00000000, 0x00000000, 0x00011100, 0x00000000, // 007eh - 0x00011110, 0x00100000, 0x00100000, 0x00011100, - 0x00000000, 0x00000000, 0x00011100, 0x00000000, // 007fh - 0x00111110, 0x00010000, 0x00001100, 0x00110010, - 0x00000000, 0x00000000, 0x00000100, 0x00101111, // 0080h - 0x01000100, 0x00011110, 0x00100101, 0x00010110, - 0x00000000, 0x00000000, 0x00001010, 0x00011110, // 0081h - 0x00101011, 0x00100010, 0x00010100, 0x00000100, - 0x00000000, 0x00000000, 0x00001000, 0x00011101, // 0082h - 0x00101011, 0x00101001, 0x00011001, 0x00000100, - 0x00000000, 0x00000000, 0x00001000, 0x00111000, // 0083h - 0x00001000, 0x00011110, 0x00101001, 0x00000110, - 0x00000000, 0x00000000, 0x00000000, 0x00011100, // 0084h - 0x00100011, 0x00100000, 0x00100000, 0x00011100, - 0x00000000, 0x00000110, 0x01001001, 0x00110000, // 0085h - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x00000100, 0x00111111, 0x00000100, // 0086h - 0x00111110, 0x01010101, 0x01001101, 0x00100110, - 0x00000000, 0x00000000, 0x00100001, 0x01000001, // 0087h - 0x01000001, 0x01000001, 0x00000001, 0x00000010, - 0x00000000, 0x00111100, 0x00000000, 0x00111110, // 0088h - 0x01000000, 0x01000000, 0x00100000, 0x00011100, - 0x00000000, 0x00011100, 0x00000000, 0x00111110, // 0089h - 0x00010000, 0x00001000, 0x00010100, 0x01100010, - 0x00000000, 0x00100100, 0x01011111, 0x00000100, // 008ah - 0x00111110, 0x01000101, 0x01000101, 0x00100010, - 0x00000000, 0x00100010, 0x01001111, 0x01010010, // 008bh - 0x01010010, 0x00010010, 0x00010010, 0x00001001, - 0x00000000, 0x00000100, 0x00111110, 0x00001000, // 008ch - 0x00111110, 0x00010000, 0x00000010, 0x00111100, - 0x00000000, 0x00100000, 0x00011000, 0x00000110, // 008dh - 0x00000001, 0x00000110, 0x00011000, 0x00100000, - 0x00000000, 0x00100000, 0x01111101, 0x00100001, // 008eh - 0x00100001, 0x00100001, 0x00100001, 0x00010010, - 0x00000000, 0x00011110, 0x00100000, 0x00000000, // 008fh - 0x00000000, 0x00000001, 0x00000001, 0x00111110, - 0x00000000, 0x00001000, 0x01111111, 0x00010000, // 0090h - 0x00100000, 0x00000010, 0x00000010, 0x00111100, - 0x00000000, 0x00000001, 0x00000001, 0x00000001, // 0091h - 0x01000001, 0x01000001, 0x00100010, 0x00011100, - 0x00000000, 0x00010000, 0x01111111, 0x00011000, // 0092h - 0x00010100, 0x00010100, 0x00011000, 0x00001100, - 0x00000000, 0x00100010, 0x01111111, 0x00100010, // 0093h - 0x00100010, 0x00000010, 0x00000010, 0x01111100, - 0x00000000, 0x00111100, 0x00010000, 0x00001100, // 0094h - 0x01111111, 0x00001000, 0x00001000, 0x00110000, - 0x00000000, 0x00000100, 0x00011111, 0x00000100, // 0095h - 0x01110100, 0x00000010, 0x00001010, 0x01110010, - 0x00000000, 0x00001000, 0x01111111, 0x00000100, // 0096h - 0x00111100, 0x01000010, 0x01000000, 0x00111100, - 0x00000000, 0x00000000, 0x00011100, 0x00100011, // 0097h - 0x01000000, 0x01000000, 0x00100000, 0x00011100, - 0x00000000, 0x01111111, 0x00010000, 0x00001000, // 0098h - 0x00001000, 0x00001000, 0x00001000, 0x00110000, - 0x00000000, 0x00000010, 0x00110010, 0x00001100, // 0099h - 0x00000010, 0x00000001, 0x00000001, 0x00111110, - 0x00000000, 0x00100100, 0x01001111, 0x01000010, // 009ah - 0x00010001, 0x00111100, 0x00010010, 0x00001100, - 0x00000000, 0x00000010, 0x01111010, 0x01000010, // 009bh - 0x00000010, 0x00000010, 0x00001010, 0x01110010, - 0x00000000, 0x00100010, 0x00111110, 0x01010010, // 009ch - 0x01001011, 0x01101101, 0x01010101, 0x00110010, - 0x00000000, 0x00110010, 0x01001011, 0x01000110, // 009dh - 0x01000110, 0x01110010, 0x01001011, 0x00110010, - 0x00000000, 0x00011100, 0x00101010, 0x01001001, // 009eh - 0x01001001, 0x01000101, 0x01000101, 0x00110010, - 0x00000000, 0x00100001, 0x01111101, 0x00100001, // 009fh - 0x00100001, 0x00111001, 0x01100101, 0x00011001, - 0x00000000, 0x00000100, 0x00100011, 0x01100010, // 00a0h - 0x00100001, 0x00100001, 0x00010010, 0x00001100, - 0x00000000, 0x00000000, 0x00000000, 0x00000000, // 00a1h - 0x00000000, 0x00000100, 0x00001010, 0x00000100, - 0x00000000, 0x01110000, 0x00010000, 0x00010000, // 00a2h - 0x00010000, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x00000000, 0x00000000, 0x00000000, // 00a3h - 0x00001000, 0x00001000, 0x00001000, 0x00001110, - 0x00000000, 0x00000000, 0x00000000, 0x00000000, // 00a4h - 0x00000000, 0x00000010, 0x00000100, 0x00000100, - 0x00000000, 0x00000000, 0x00000000, 0x00011000, // 00a5h - 0x00011000, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x01111111, 0x01000000, 0x01111111, // 00a6h - 0x01000000, 0x01000000, 0x00100000, 0x00011100, - 0x00000000, 0x00000000, 0x00111111, 0x00100000, // 00a7h - 0x00010100, 0x00001100, 0x00000100, 0x00000010, - 0x00000000, 0x00000000, 0x00100000, 0x00100000, // 00a8h - 0x00010000, 0x00001111, 0x00001000, 0x00001000, - 0x00000000, 0x00000000, 0x00000100, 0x00111111, // 00a9h - 0x00100001, 0x00100000, 0x00010000, 0x00001100, - 0x00000000, 0x00000000, 0x00000000, 0x00111110, // 00aah - 0x00001000, 0x00001000, 0x00001000, 0x01111111, - 0x00000000, 0x00000000, 0x00010000, 0x00111111, // 00abh - 0x00011000, 0x00010100, 0x00010010, 0x00011001, - 0x00000000, 0x00000000, 0x00000010, 0x00111111, // 00ach - 0x00100010, 0x00010010, 0x00000100, 0x00000100, - 0x00000000, 0x00000000, 0x00000000, 0x00111110, // 00adh - 0x00100000, 0x00100000, 0x00100000, 0x01111111, - 0x00000000, 0x00000000, 0x00111110, 0x00100000, // 00aeh - 0x00111110, 0x00100000, 0x00100000, 0x00111110, - 0x00000000, 0x00000000, 0x00100101, 0x00101010, // 00afh - 0x00101010, 0x00100000, 0x00010000, 0x00001110, - 0x00000000, 0x00000000, 0x00000000, 0x00000000, // 00b0h - 0x01111111, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x01111111, 0x01000000, 0x00101000, // 00b1h - 0x00011000, 0x00001000, 0x00001000, 0x00000100, - 0x00000000, 0x01000000, 0x00100000, 0x00011000, // 00b2h - 0x00010111, 0x00010000, 0x00010000, 0x00010000, - 0x00000000, 0x00001000, 0x01111111, 0x01000001, // 00b3h - 0x01000001, 0x01000000, 0x00100000, 0x00011000, - 0x00000000, 0x00000000, 0x00111110, 0x00001000, // 00b4h - 0x00001000, 0x00001000, 0x00001000, 0x01111111, - 0x00000000, 0x00100000, 0x01111111, 0x00110000, // 00b5h - 0x00101000, 0x00100100, 0x00100010, 0x00110001, - 0x00000000, 0x00000100, 0x01111111, 0x01000100, // 00b6h - 0x01000100, 0x01000100, 0x01000010, 0x00100001, - 0x00000000, 0x00000100, 0x00111111, 0x00001000, // 00b7h - 0x01111111, 0x00010000, 0x00010000, 0x00010000, - 0x00000000, 0x01111100, 0x01000100, 0x01000100, // 00b8h - 0x01000010, 0x01000000, 0x00100000, 0x00011000, - 0x00000000, 0x00000010, 0x01111110, 0x00100010, // 00b9h - 0x00100001, 0x00100000, 0x00010000, 0x00001100, - 0x00000000, 0x01111110, 0x01000000, 0x01000000, // 00bah - 0x01000000, 0x01000000, 0x01000000, 0x01111110, - 0x00000000, 0x00100010, 0x01111111, 0x00100010, // 00bbh - 0x00100010, 0x00100000, 0x00010000, 0x00001100, - 0x00000000, 0x00000011, 0x00000100, 0x01000011, // 00bch - 0x01000100, 0x00100000, 0x00011000, 0x00000111, - 0x00000000, 0x01111111, 0x01000000, 0x00100000, // 00bdh - 0x00010000, 0x00011000, 0x00100100, 0x01000011, - 0x00000000, 0x00000010, 0x01111111, 0x01000010, // 00beh - 0x00100010, 0x00000010, 0x00000010, 0x01111100, - 0x00000000, 0x01000001, 0x01000010, 0x01000000, // 00bfh - 0x00100000, 0x00100000, 0x00011000, 0x00000110, - 0x00000000, 0x01111110, 0x01000010, 0x01001110, // 00c0h - 0x01110001, 0x01000000, 0x00100000, 0x00011000, - 0x00000000, 0x01100000, 0x00011110, 0x00010000, // 00c1h - 0x01111111, 0x00010000, 0x00010000, 0x00001100, - 0x00000000, 0x01000101, 0x01001010, 0x01001010, // 00c2h - 0x01000000, 0x00100000, 0x00010000, 0x00001110, - 0x00000000, 0x00111110, 0x00000000, 0x01111111, // 00c3h - 0x00010000, 0x00010000, 0x00001000, 0x00000110, - 0x00000000, 0x00000010, 0x00000010, 0x00000110, // 00c4h - 0x00011010, 0x01100010, 0x00000010, 0x00000010, - 0x00000000, 0x00010000, 0x00010000, 0x01111111, // 00c5h - 0x00010000, 0x00010000, 0x00001000, 0x00000110, - 0x00000000, 0x00000000, 0x00111110, 0x00000000, // 00c6h - 0x00000000, 0x00000000, 0x00000000, 0x01111111, - 0x00000000, 0x01111110, 0x01000000, 0x01000100, // 00c7h - 0x00101000, 0x00010000, 0x00101000, 0x01000110, - 0x00000000, 0x00001000, 0x01111111, 0x00100000, // 00c8h - 0x00010000, 0x00011100, 0x01101011, 0x00001000, - 0x00000000, 0x01000000, 0x01000000, 0x01000000, // 00c9h - 0x00100000, 0x00100000, 0x00011000, 0x00000111, - 0x00000000, 0x00010010, 0x00100010, 0x00100010, // 00cah - 0x01000010, 0x01000010, 0x01000001, 0x01000001, - 0x00000000, 0x00000001, 0x00000001, 0x01111111, // 00cbh - 0x00000001, 0x00000001, 0x00000001, 0x01111110, - 0x00000000, 0x01111111, 0x01000000, 0x01000000, // 00cch - 0x01000000, 0x00100000, 0x00010000, 0x00001110, - 0x00000000, 0x00000000, 0x00000100, 0x00001010, // 00cdh - 0x00010001, 0x00100001, 0x01000000, 0x00000000, - 0x00000000, 0x00001000, 0x00001000, 0x01111111, // 00ceh - 0x00001000, 0x00101010, 0x01001010, 0x01001001, - 0x00000000, 0x01111111, 0x01000000, 0x01000000, // 00cfh - 0x00100010, 0x00010100, 0x00001000, 0x00010000, - 0x00000000, 0x00001110, 0x01110000, 0x00001110, // 00d0h - 0x01110000, 0x00000110, 0x00011000, 0x01100000, - 0x00000000, 0x00001000, 0x00001000, 0x00000100, // 00d1h - 0x00000100, 0x00100010, 0x01000010, 0x01111111, - 0x00000000, 0x01000000, 0x01000000, 0x00100100, // 00d2h - 0x00101000, 0x00010000, 0x00101100, 0x01000011, - 0x00000000, 0x01111111, 0x00000100, 0x01111111, // 00d3h - 0x00000100, 0x00000100, 0x00000100, 0x01111000, - 0x00000000, 0x00000010, 0x01111111, 0x01000010, // 00d4h - 0x00100010, 0x00010100, 0x00000100, 0x00000100, - 0x00000000, 0x00000000, 0x00111110, 0x00100000, // 00d5h - 0x00100000, 0x00100000, 0x00100000, 0x01111111, - 0x00000000, 0x01111110, 0x01000000, 0x01000000, // 00d6h - 0x01111110, 0x01000000, 0x01000000, 0x01111110, - 0x00000000, 0x00111110, 0x00000000, 0x01111111, // 00d7h - 0x01000000, 0x01000000, 0x00100000, 0x00011100, - 0x00000000, 0x01000010, 0x01000010, 0x01000010, // 00d8h - 0x01000010, 0x01000000, 0x00100000, 0x00011000, - 0x00000000, 0x00001010, 0x00001010, 0x00001010, // 00d9h - 0x01001010, 0x01001010, 0x00101010, 0x00011001, - 0x00000000, 0x00000010, 0x00000010, 0x01000010, // 00dah - 0x01000010, 0x00100010, 0x00010010, 0x00001110, - 0x00000000, 0x01111111, 0x01000001, 0x01000001, // 00dbh - 0x01000001, 0x01000001, 0x01000001, 0x01111111, - 0x00000000, 0x01111111, 0x01000001, 0x01000001, // 00dch - 0x01000000, 0x01000000, 0x00100000, 0x00011100, - 0x00000000, 0x01000011, 0x01000100, 0x01000000, // 00ddh - 0x01000000, 0x00100000, 0x00010000, 0x00001111, - 0x00000100, 0x00001000, 0x00000010, 0x00000100, // 00deh - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x00000100, 0x00001010, 0x00001010, 0x00000100, // 00dfh - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x00011110, 0x00001000, 0x00000100, // 00e0h - 0x00101001, 0x01010001, 0x01010001, 0x00001100, - 0x00000000, 0x00000000, 0x00001100, 0x00010010, // 00e1h - 0x00010010, 0x00100001, 0x01000000, 0x00000000, - 0x00000000, 0x01111101, 0x00100001, 0x01111101, // 00e2h - 0x00100001, 0x00111001, 0x01100101, 0x00011001, - 0x00000000, 0x00111100, 0x00010000, 0x00111100, // 00e3h - 0x00010000, 0x00011100, 0x00110010, 0x00001100, - 0x00000000, 0x00001110, 0x00101000, 0x00101000, // 00e4h - 0x00111110, 0x01100101, 0x00100101, 0x00010010, - 0x00000000, 0x00000100, 0x00101111, 0x01000100, // 00e5h - 0x00000110, 0x01000101, 0x01000101, 0x00111110, - 0x00000000, 0x00100010, 0x00100010, 0x00111110, // 00e6h - 0x01010010, 0x01010101, 0x01001101, 0x00100110, - 0x00000000, 0x00000100, 0x00011111, 0x00000010, // 00e7h - 0x00011111, 0x01000010, 0x01000010, 0x00111100, - 0x00000000, 0x00010010, 0x00111110, 0x01010011, // 00e8h - 0x01000010, 0x00100100, 0x00000100, 0x00000100, - 0x00000000, 0x00001000, 0x00111101, 0x01001011, // 00e9h - 0x01001001, 0x01001001, 0x00111000, 0x00000100, - 0x00000000, 0x00001000, 0x00111000, 0x00001000, // 00eah - 0x00001000, 0x00011110, 0x00101001, 0x00000110, - 0x00000000, 0x00011000, 0x00100000, 0x00000100, // 00ebh - 0x00111010, 0x01000110, 0x01000000, 0x00111000, - 0x00000000, 0x01000010, 0x01000010, 0x01000010, // 00ech - 0x01000110, 0x01000000, 0x00100000, 0x00011000, - 0x00000000, 0x00111110, 0x00010000, 0x00111100, // 00edh - 0x01000011, 0x01001100, 0x01010010, 0x00111100, - 0x00000000, 0x00100010, 0x00110011, 0x00101010, // 00eeh - 0x00100110, 0x00100010, 0x00100011, 0x01000010, - 0x00000000, 0x00111110, 0x00010000, 0x00111100, // 00efh - 0x01000011, 0x01000000, 0x01000010, 0x00111100, - 0x00000000, 0x00000010, 0x00111011, 0x01000110, // 00f0h - 0x01000010, 0x01000011, 0x01000010, 0x00110010, - 0x00000000, 0x00000100, 0x00000100, 0x00000010, // 00f1h - 0x01000110, 0x01000101, 0x01000101, 0x00111001, - 0x00000000, 0x01010100, 0x01111111, 0x00100100, // 00f2h - 0x00100100, 0x00100100, 0x00100010, 0x00010001, - 0x00000000, 0x01010100, 0x01011111, 0x00000100, // 00f3h - 0x00111111, 0x00001000, 0x00001000, 0x00001000, - 0x00000000, 0x01011110, 0x01100010, 0x00100010, // 00f4h - 0x00100001, 0x00100000, 0x00010000, 0x00001100, - 0x00000000, 0x01010010, 0x01111110, 0x00100010, // 00f5h - 0x00100001, 0x00100000, 0x00010000, 0x00001100, - 0x00000000, 0x01010000, 0x01111111, 0x00100000, // 00f6h - 0x00100000, 0x00100000, 0x00100000, 0x00111111, - 0x00000000, 0x01010010, 0x01010010, 0x00111111, // 00f7h - 0x00010010, 0x00010000, 0x00010000, 0x00001100, - 0x00000000, 0x01010011, 0x01010100, 0x00100011, // 00f8h - 0x00100100, 0x00010000, 0x00001000, 0x00000111, - 0x00000000, 0x01010000, 0x01011111, 0x00010000, // 00f9h - 0x00001000, 0x00001100, 0x00010010, 0x00100001, - 0x00000000, 0x01010010, 0x01111111, 0x00100010, // 00fah - 0x00010010, 0x00000010, 0x00000010, 0x00111100, - 0x00000000, 0x01010001, 0x01010010, 0x00100000, // 00fbh - 0x00100000, 0x00010000, 0x00001000, 0x00000110, - 0x00000000, 0x01011110, 0x01010010, 0x00100110, // 00fch - 0x00111001, 0x00100000, 0x00010000, 0x00001100, - 0x00000000, 0x01010000, 0x01011110, 0x00010000, // 00fdh - 0x01111111, 0x00010000, 0x00010000, 0x00001100, - 0x00000000, 0x00100101, 0x01001010, 0x00101010, // 00feh - 0x00100000, 0x00010000, 0x00001000, 0x00000111, - 0x00000000, 0x01011110, 0x01010000, 0x00111111, // 00ffh - 0x00001000, 0x00001000, 0x00001000, 0x00000110, -}; - -/*---------------------- Character Data2 -------------------------*/ -const unsigned int d_64_256_bg_schDT2[16 * 11] = { - 0x00000000, 0x00000000, 0x00000000, 0x00000000, // 0000h - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0xf1f1f1f1, 0xf1f1f1f1, 0x00000000, 0x00000000, // 横 - 0xf1f1f1f1, 0xf1f1f1f1, 0x00000000, 0x00000000, - 0xf1f1f1f1, 0xf1f1f1f1, 0x00000000, 0x00000000, - 0xf1f1f1f1, 0xf1f1f1f1, 0x00000000, 0x00000000, - 0xf100f100, 0xf100f100, 0xf100f100, 0xf100f100, // 縦 - 0xf100f100, 0xf100f100, 0xf100f100, 0xf100f100, - 0xf100f100, 0xf100f100, 0xf100f100, 0xf100f100, - 0xf100f100, 0xf100f100, 0xf100f100, 0xf100f100, - 0xf1f1f1f1, 0xf1f1f1f1, 0xf1f1f1f1, 0xf1f1f1f1, // w - 0xf1f1f1f1, 0xf1f1f1f1, 0xf1f1f1f1, 0xf1f1f1f1, - 0xf1f1f1f1, 0xf1f1f1f1, 0xf1f1f1f1, 0xf1f1f1f1, - 0xf1f1f1f1, 0xf1f1f1f1, 0xf1f1f1f1, 0xf1f1f1f1, - 0x00000000, 0x00000000, 0x00000000, 0x00000000, // blk - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x11111111, 0x11111111, 0x11111111, 0x11111111, // r - 0x11111111, 0x11111111, 0x11111111, 0x11111111, - 0x11111111, 0x11111111, 0x11111111, 0x11111111, - 0x11111111, 0x11111111, 0x11111111, 0x11111111, - 0x21212121, 0x21212121, 0x21212121, 0x21212121, // g - 0x21212121, 0x21212121, 0x21212121, 0x21212121, - 0x21212121, 0x21212121, 0x21212121, 0x21212121, - 0x21212121, 0x21212121, 0x21212121, 0x21212121, - 0x31313131, 0x31313131, 0x31313131, 0x31313131, // b - 0x31313131, 0x31313131, 0x31313131, 0x31313131, - 0x31313131, 0x31313131, 0x31313131, 0x31313131, - 0x31313131, 0x31313131, 0x31313131, 0x31313131, - 0x41414141, 0x41414141, 0x41414141, 0x41414141, // y - 0x41414141, 0x41414141, 0x41414141, 0x41414141, - 0x41414141, 0x41414141, 0x41414141, 0x41414141, - 0x41414141, 0x41414141, 0x41414141, 0x41414141, - 0x51515151, 0x51515151, 0x51515151, 0x51515151, // m - 0x51515151, 0x51515151, 0x51515151, 0x51515151, - 0x51515151, 0x51515151, 0x51515151, 0x51515151, - 0x51515151, 0x51515151, 0x51515151, 0x51515151, - 0x61616161, 0x61616161, 0x61616161, 0x61616161, // c - 0x61616161, 0x61616161, 0x61616161, 0x61616161, - 0x61616161, 0x61616161, 0x61616161, 0x61616161, - 0x61616161, 0x61616161, 0x61616161, 0x61616161, -}; - -/* EOF */ diff --git a/build/tests/data/data.h b/build/tests/data/data.h deleted file mode 100644 index 7f1e3c9e..00000000 --- a/build/tests/data/data.h +++ /dev/null @@ -1,29 +0,0 @@ -/*---------------------------------------------------------------------------* - Project: TwlSDK - GX - demos - UnitTours/2D_CharBg_1 - File: data.h - - Copyright 2003 Nintendo. All rights reserved. - - These coded instructions, statements, and computer programs contain - proprietary information of Nintendo of America Inc. and/or Nintendo - Company Ltd., and are protected by Federal copyright law. They may - not be disclosed to third parties or copied or duplicated in any form, - in whole or in part, without the prior written consent of Nintendo. - - $Date:: 2007-08-29#$ - $Rev: 640 $ - $Author: kitase_hirotake $ - *---------------------------------------------------------------------------*/ - -#ifndef BG_DATA_H_ -#define BG_DATA_H_ - -#define SCREEN_SIZE (32 * 24) - -/*-------------------------- Data -------------------------------*/ -#define CHAR_SIZE (16 * 128 * sizeof(int)) -extern const unsigned int d_64_256_bg_schDT[8 * 256]; -extern const unsigned int d_64_256_bg_schDT2[16 * 11]; -extern const unsigned int d_64_256_bg_sclDT[8 * 16]; - -#endif diff --git a/build/tests/docs/NAND繧「繝励Μ髢馴」謳コ繧オ繝ウ繝励Ν蜍穂ス懆ァ」隱ャ縺翫h縺ウ繝代Λ繝。繧ソ莉墓ァ.pdf b/build/tests/docs/NAND繧「繝励Μ髢馴」謳コ繧オ繝ウ繝励Ν蜍穂ス懆ァ」隱ャ縺翫h縺ウ繝代Λ繝。繧ソ莉墓ァ.pdf deleted file mode 100644 index e3dd1e5f..00000000 Binary files a/build/tests/docs/NAND繧「繝励Μ髢馴」謳コ繧オ繝ウ繝励Ν蜍穂ス懆ァ」隱ャ縺翫h縺ウ繝代Λ繝。繧ソ莉墓ァ.pdf and /dev/null differ diff --git a/build/tests/docs/NAND繧「繝励Μ髢馴」謳コ繧オ繝ウ繝励Ν蜍穂ス懆ァ」隱ャ縺翫h縺ウ繝代Λ繝。繧ソ莉墓ァ.vsd b/build/tests/docs/NAND繧「繝励Μ髢馴」謳コ繧オ繝ウ繝励Ν蜍穂ス懆ァ」隱ャ縺翫h縺ウ繝代Λ繝。繧ソ莉墓ァ.vsd deleted file mode 100644 index 09a83d4f..00000000 Binary files a/build/tests/docs/NAND繧「繝励Μ髢馴」謳コ繧オ繝ウ繝励Ν蜍穂ス懆ァ」隱ャ縺翫h縺ウ繝代Λ繝。繧ソ莉墓ァ.vsd and /dev/null differ diff --git a/build/tests/docs/tmp菫晏ュ倥い繝励Μ襍キ蜍輔し繝ウ繝励Ν蜍穂ス懆ァ」隱ャ.pdf b/build/tests/docs/tmp菫晏ュ倥い繝励Μ襍キ蜍輔し繝ウ繝励Ν蜍穂ス懆ァ」隱ャ.pdf deleted file mode 100644 index a677975a..00000000 Binary files a/build/tests/docs/tmp菫晏ュ倥い繝励Μ襍キ蜍輔し繝ウ繝励Ν蜍穂ス懆ァ」隱ャ.pdf and /dev/null differ diff --git a/build/tests/docs/tmp菫晏ュ倥い繝励Μ襍キ蜍輔し繝ウ繝励Ν蜍穂ス懆ァ」隱ャ.vsd b/build/tests/docs/tmp菫晏ュ倥い繝励Μ襍キ蜍輔し繝ウ繝励Ν蜍穂ス懆ァ」隱ャ.vsd deleted file mode 100644 index c833785f..00000000 Binary files a/build/tests/docs/tmp菫晏ュ倥い繝励Μ襍キ蜍輔し繝ウ繝励Ν蜍穂ス懆ァ」隱ャ.vsd and /dev/null differ diff --git a/build/tests/docs/繝。繝「繝ェ繝ュ繝シ繝画ク医∩繧「繝励Μ襍キ蜍輔し繝ウ繝励Ν蜍穂ス懆ァ」隱ャ.pdf b/build/tests/docs/繝。繝「繝ェ繝ュ繝シ繝画ク医∩繧「繝励Μ襍キ蜍輔し繝ウ繝励Ν蜍穂ス懆ァ」隱ャ.pdf deleted file mode 100644 index 4864d5bd..00000000 Binary files a/build/tests/docs/繝。繝「繝ェ繝ュ繝シ繝画ク医∩繧「繝励Μ襍キ蜍輔し繝ウ繝励Ν蜍穂ス懆ァ」隱ャ.pdf and /dev/null differ diff --git a/build/tests/docs/繝。繝「繝ェ繝ュ繝シ繝画ク医∩繧「繝励Μ襍キ蜍輔し繝ウ繝励Ν蜍穂ス懆ァ」隱ャ.vsd b/build/tests/docs/繝。繝「繝ェ繝ュ繝シ繝画ク医∩繧「繝励Μ襍キ蜍輔し繝ウ繝励Ν蜍穂ス懆ァ」隱ャ.vsd deleted file mode 100644 index f7e11360..00000000 Binary files a/build/tests/docs/繝。繝「繝ェ繝ュ繝シ繝画ク医∩繧「繝励Μ襍キ蜍輔し繝ウ繝励Ν蜍穂ス懆ァ」隱ャ.vsd and /dev/null differ diff --git a/build/tests/misc/misc_simple.c b/build/tests/misc/misc_simple.c deleted file mode 100644 index 4f5c5d29..00000000 --- a/build/tests/misc/misc_simple.c +++ /dev/null @@ -1,154 +0,0 @@ -/*---------------------------------------------------------------------------* - Project: TwlIPL - File: misc.c - - Copyright 2007 Nintendo. All rights reserved. - - These coded instructions, statements, and computer programs contain - proprietary information of Nintendo of America Inc. and/or Nintendo - Company Ltd., and are protected by Federal copyright law. They may - not be disclosed to third parties or copied or duplicated in any form, - in whole or in part, without the prior written consent of Nintendo. - - $Date:: 2008-01-30#$ - $Rev: 547 $ - $Author: yoshida_teruhisa $ - *---------------------------------------------------------------------------*/ - -#include -#include "misc_simple.h" -#include "data.h" - -// define data----------------------------------------------------------------- - - -// extern data----------------------------------------------------------------- - -// define data----------------------------------------------------------------- - - -// function's prototype------------------------------------------------------- - - -// global variable------------------------------------------------------------- - - -// static variable------------------------------------------------------------- -static u16 sScrnBuf[2][SCREEN_SIZE]; // Buffer for screen data(BG #0) - -// const data------------------------------------------------------------------ - -void myInit( void ) -{ - //--------------------------------------------------------------------------- - // Initialize: - // They enable IRQ interrupts, initialize VRAM, and set BG #0 for text mode. - //--------------------------------------------------------------------------- - DEMOInitCommon(); - DEMOInitVRAM(); - DEMOInitDisplayBG0Only(); - DEMOInitDisplaySubBG0Only(); - - //--------------------------------------------------------------------------- - // Transmitting the character data and the palette data - //--------------------------------------------------------------------------- - G2_SetBG0Control(GX_BG_SCRSIZE_TEXT_256x256, - GX_BG_COLORMODE_16, - GX_BG_SCRBASE_0x0800, GX_BG_CHARBASE_0x04000, GX_BG_EXTPLTT_01); - - GX_LoadBG0Char(d_64_256_bg_schDT, 0, sizeof(d_64_256_bg_schDT)); - GX_LoadBGPltt(d_64_256_bg_sclDT, 0, sizeof(d_64_256_bg_sclDT)); - - G2S_SetBG0Control(GX_BG_SCRSIZE_TEXT_256x256, - GX_BG_COLORMODE_16, - GX_BG_SCRBASE_0x1000, GX_BG_CHARBASE_0x08000, GX_BG_EXTPLTT_01); - - GXS_LoadBG0Char(d_64_256_bg_schDT, 0, sizeof(d_64_256_bg_schDT)); - GXS_LoadBGPltt(d_64_256_bg_sclDT, 0, sizeof(d_64_256_bg_sclDT)); - - GX_SetVisiblePlane(GX_PLANEMASK_BG0|GX_PLANEMASK_BG2); - GXS_SetVisiblePlane(GX_PLANEMASK_BG0|GX_PLANEMASK_BG2); - - G2_SetBG0Priority(0); - G2S_SetBG0Priority(0); - - GX_SetDispSelect(GX_DISP_SELECT_SUB_MAIN); - - DEMOStartDisplay(); -} - -void myPreMain( void ) -{ - // 描画前クリア処理。まぁどのシーンでも使うので。 - myDp_Cls16(MAIN_SCREEN); - myDp_Cls16(SUB_SCREEN); - - DEMOReadKey(); -} - -void myProMain( void ) -{ - // Store the data onto the main memory, and invalidate the cache. - // キャッシュONになってると、CPUとDMAの見てるメモリの値が違って、悲しい事が起きる - DC_FlushRange(sScrnBuf[0], sizeof(sScrnBuf[0])); - DC_FlushRange(sScrnBuf[1], sizeof(sScrnBuf[1])); - // 描画後フリップ処理。まぁどのシーンでも使うので。 - OS_WaitVBlankIntr(); // Waiting the end of VBlank interrupt - GX_LoadBG0Scr(sScrnBuf[0], 0, sizeof(sScrnBuf[0])); - GXS_LoadBG0Scr(sScrnBuf[1], 0, sizeof(sScrnBuf[1])); -} - -void myDp_Cls16(MyScreen scr) -{ - if( !(scr < SCREEN_MAX) ) return; - MI_CpuClear8((void *)sScrnBuf[scr],SCREEN_SIZE * sizeof(u16)); -} - -void myDp_Cls8(MyScreen scr) -{ - if( !(scr < SCREEN_MAX) ) return; - MI_CpuClear8((void *)sScrnBuf[scr],SCREEN_SIZE * sizeof(u8)); -} - -void myDp_Putchar(s32 x, s32 y, u8 color, MyScreen scr, u8 c) -{ - if( !(scr < SCREEN_MAX) ) return; - sScrnBuf[scr][(y * 32) + x] = (u16)((color << 12) | c); -} - -void myDp_Write(s32 x, s32 y, u8 color, MyScreen scr, char* str) -{ - while (*str) { - while (x >= 32) { - x -= 32; - y++; - } - while (y >= 24) { - return; // out of range - } - myDp_Putchar(x, y, color, scr, (u8)*str++); - x++; - } -} - -void myDp_Printf(s32 x, s32 y, u8 color, MyScreen scr, const char *s, ...) -{ - va_list vlist; - char temp[SCREEN_SIZE+1]; - temp[sizeof(temp)-1] = 0; - va_start(vlist, s); - vsnprintf(temp, sizeof(temp) - 1, s, vlist); - va_end(vlist); - myDp_Write(x, y, color, scr, temp); -} - -void myDp_DrawMenu( u16 csr, MyScreen scr, const MenuParam *param ) -{ - int l; - for( l=0; lnum; l++) - { - myDp_Printf( param->pos[l].x, param->pos[l].y, - (u8)( param->pos[l].enable ? ( l==csr ? param->select_color : param->normal_color ) : param->disable_color ), - scr, ( l==csr ? "=>%s" : " %s" ), param->str_elem[l] ); - } -} \ No newline at end of file diff --git a/build/tests/misc/misc_simple.h b/build/tests/misc/misc_simple.h deleted file mode 100644 index 9064e906..00000000 --- a/build/tests/misc/misc_simple.h +++ /dev/null @@ -1,97 +0,0 @@ -/*---------------------------------------------------------------------------* - Project: TwlIPL - File: misc.h - - Copyright 2007 Nintendo. All rights reserved. - - These coded instructions, statements, and computer programs contain - proprietary information of Nintendo of America Inc. and/or Nintendo - Company Ltd., and are protected by Federal copyright law. They may - not be disclosed to third parties or copied or duplicated in any form, - in whole or in part, without the prior written consent of Nintendo. - - $Date:: 2007-11-15#$ - $Rev: 188 $ - $Author: yoshida_teruhisa $ - *---------------------------------------------------------------------------*/ - -#ifndef __MISC_SIMPLE_H__ -#define __MISC_SIMPLE_H__ - -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -// define data---------------------------------------------------------- - -#define MYPAD_IS_TRIG DEMO_IS_TRIG -#define MYPAD_IS_PRESS DEMO_IS_PRESS - -// TXTColorPalette の色名 256色パレットへのロードを想定 -enum -{ - TXT_COLOR_BLACK=0, - TXT_COLOR_RED, - TXT_COLOR_GREEN, - TXT_COLOR_BLUE, - TXT_COLOR_YELLOW, - TXT_COLOR_PURPLE, - TXT_COLOR_LIGHTBLUE, - TXT_COLOR_DARKRED, - TXT_COLOR_DARKGREEN, - TXT_COLOR_DARKBLUE, - TXT_COLOR_DARKYELLOW, - TXT_COLOR_DARKPURPLE, - TXT_COLOR_DARKLIGHTBLUE, - TXT_COLOR_GRAY, - TXT_COLOR_DARKGRAY, - TXT_COLOR_WHITE -}; - -typedef enum -{ - MAIN_SCREEN = 0, - SUB_SCREEN, - SCREEN_MAX -} -MyScreen; - -// メニュー要素座標 -typedef struct MenuPos { - BOOL enable; - int x; - int y; -}MenuPos; - -// メニュー構成パラメータ構造体 -typedef struct MenuParam { - int num; - int normal_color; - int select_color; - int disable_color; - MenuPos *pos; - const char **str_elem; -}MenuParam; - -// global variables-------------------------------------------------- - -// function------------------------------------------------------------- -void myInit( void ); -void myPreMain( void ); -void myProMain( void ); - -void myDp_Cls16(MyScreen scr); -void myDp_Cls8(MyScreen scr); -void myDp_Putchar(s32 x, s32 y, u8 color, MyScreen scr, u8 c); -void myDp_Write(s32 x, s32 y, u8 color, MyScreen scr, char* str); -void myDp_Printf(s32 x, s32 y, u8 color, MyScreen scr, const char *s, ...); -void myDp_DrawMenu( u16 csr, MyScreen scr, const MenuParam *param ); - -#ifdef __cplusplus -} -#endif - -#endif // __MISC_H__