-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakeAsmFEgba.bat
55 lines (34 loc) · 1.43 KB
/
MakeAsmFEgba.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
@echo off
SET startDir="C:\devkitPro\devkitARM\bin\"
SET as="%startDir%arm-none-eabi-as"
SET LYN="C:\devkitPro\lyn.exe"
@rem Assemble into an elf
%as% -g -mcpu=arm7tdmi -mthumb-interwork "AsmHooks.asm" -o "%~dp0Patches\%~n1.elf"
if exist "%~dp0Patches\FE6_defs.s" (
@rem Assemble definitions into a .elf if exists
%as% -g -mcpu=arm7tdmi -mthumb-interwork "%~dp0Patches\FE6_defs.s" -o "%~dp0Patches\FE6_defs.elf"
@rem Assebmle into a .lyn.event with definitions
%LYN% "%~dp0Patches\%~n1.elf" "%~dp0Patches\FE6_defs.elf" > "%~dp0Patches\FE6_AsmHooks.lyn.event"
@cd %~dp0/Patches
echo y | del "FE6_defs.elf"
)
@cd %~dp0
if exist "%~dp0Patches\FE7_defs.s" (
@rem Assemble definitions into a .elf if exists
%as% -g -mcpu=arm7tdmi -mthumb-interwork "%~dp0Patches\FE7_defs.s" -o "%~dp0Patches\FE7_defs.elf"
@rem Assebmle into a .lyn.event with definitions
%LYN% "%~dp0Patches\%~n1.elf" "%~dp0Patches\FE7_defs.elf" > "%~dp0Patches\FE7_AsmHooks.lyn.event"
@cd %~dp0/Patches
echo y | del "FE7_defs.elf"
)
@cd %~dp0
if exist "%~dp0Patches\FE8_defs.s" (
@rem Assemble definitions into a .elf if exists
%as% -g -mcpu=arm7tdmi -mthumb-interwork "%~dp0Patches\FE8_defs.s" -o "%~dp0Patches\FE8_defs.elf"
@rem Assebmle into a .lyn.event with definitions
%LYN% "%~dp0Patches\%~n1.elf" "%~dp0Patches\FE8_defs.elf" > "%~dp0Patches\FE8_AsmHooks.lyn.event"
@cd %~dp0/Patches
echo y | del "FE8_defs.elf"
)
echo y | del "%~n1.elf"
pause