1#---------------------------------------------------------------------------- 2# Project: NitroSDK - FS - demos - overlay 3# File: main.lsf 4# 5# Copyright 2005-2008 Nintendo. All rights reserved. 6# 7# These coded instructions, statements, and computer programs contain 8# proprietary information of Nintendo of America Inc. and/or Nintendo 9# Company Ltd., and are protected by Federal copyright law. They may 10# not be disclosed to third parties or copied or duplicated in any form, 11# in whole or in part, without the prior written consent of Nintendo. 12# 13# $Log: overlay.lsf,v $ 14# Revision 1.4 2006/05/11 12:55:47 yasu 15# Updated copyright year 16# 17# Revision 1.3 2006/05/10 03:18:56 yasu 18# Checked the IF-ELSE-ENDIF conditional test and tested searchsymbol 19# 20# Revision 1.2 2005/08/26 11:23:38 yasu 21# Overlay support for ITCM/DTCM 22# 23# Revision 1.1 2005/08/26 04:35:19 yasu 24# Corrected problem where the arena would become strange when using DTCM overlay 25# $NoKeywords: $ 26#---------------------------------------------------------------------------- 27# 28# Nitro LCF SPEC FILE 29# 30 31Static main 32{ 33 Address 0x02000000 34 Object main_a.o main_b.o main_c.o 35 Library main_a.a main_b.a main_c.a 36 SearchSymbol main_overlay_1 37 SearchSymbol main_overlay_2 38} 39 40Autoload ITCM 41{ 42 Address 0x01ff8000 43 Object * (.itcm) 44 SearchSymbol main_overlay_1 45} 46 47Autoload DTCM 48{ 49 Address 0x023e0000 50 Object * (.dtcm) 51} 52 53# main_overlay_1 and main_overlay_2 are same area (after main). 54# main_overlay_3 is in ITCM (from 0x01FF8000, after ITCM). 55 56Overlay main_overlay_1 57{ 58 After main 59 Object OBJDIR/func_1.o 60 SearchSymbol main_overlay_2 61} 62 63Overlay main_overlay_2 64{ 65 After main 66 Object OBJDIR/func_2.o 67} 68 69Overlay main_itcm_1 70{ 71 After ITCM 72 Object OBJDIR/func_3.o 73 SearchSymbol main_overlay_1 74 SearchSymbol main_overlay_2 75 SearchSymbol main_overlay_3 76 SearchSymbol main_overlay_4 77} 78 79Overlay main_dtcm_1 80{ 81 After DTCM 82 Object OBJDIR/func_4.o 83} 84 85Overlay main_dtcm_2 86{ 87 After DTCM 88 Object OBJDIR/func_5.o 89} 90 91Overlay MAIN_EX 92{ 93 Address 0x02400000 94 Object ex_1.o 95} 96 97Overlay MAIN_EX_2 98{ 99 After MAIN_EX 100 Object ex_2.o 101} 102