-
Notifications
You must be signed in to change notification settings - Fork 3
/
generate_players.bat
65 lines (49 loc) · 3.19 KB
/
generate_players.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
56
57
58
59
60
61
62
63
64
@echo off
bin\rmac -l*player.lst -DUNROLLED_CODE=0 -DSID_VOICES=0 -DPC_REL_CODE=0 -DAVOID_SMC=0 -DUSE_EVENTS=0 -DUSE_SID_EVENTS=0 -DDUMP_SONG=0 -D_RMAC_=1 -D_VASM_=0 PlayerAky.s >NUL
call :strip_listing generated_players\player.s
bin\rmac -l*player.lst -DUNROLLED_CODE=1 -DSID_VOICES=0 -DPC_REL_CODE=0 -DAVOID_SMC=0 -DUSE_EVENTS=0 -DUSE_SID_EVENTS=0 -DDUMP_SONG=0 -D_RMAC_=1 -D_VASM_=0 PlayerAky.s >NUL
call :strip_listing generated_players\player_unrolled.s
bin\rmac -l*player.lst -DUNROLLED_CODE=0 -DSID_VOICES=1 -DPC_REL_CODE=0 -DAVOID_SMC=0 -DUSE_EVENTS=0 -DUSE_SID_EVENTS=0 -DDUMP_SONG=0 -D_RMAC_=1 -D_VASM_=0 PlayerAky.s >NUL
call :strip_listing generated_players\player_sid.s
bin\rmac -l*player.lst -DUNROLLED_CODE=1 -DSID_VOICES=1 -DPC_REL_CODE=0 -DAVOID_SMC=0 -DUSE_EVENTS=0 -DUSE_SID_EVENTS=0 -DDUMP_SONG=0 -D_RMAC_=1 -D_VASM_=0 PlayerAky.s >NUL
call :strip_listing generated_players\player_unrolled_sid.s
bin\rmac -l*player.lst -DUNROLLED_CODE=0 -DSID_VOICES=1 -DPC_REL_CODE=1 -DAVOID_SMC=1 -DUSE_EVENTS=0 -DUSE_SID_EVENTS=0 -DDUMP_SONG=0 -D_RMAC_=1 -D_VASM_=0 PlayerAky.s >NUL
call :strip_listing generated_players\player_sid_pcrel_nosmc.s
bin\rmac -l*player.lst -DUNROLLED_CODE=0 -DSID_VOICES=0 -DPC_REL_CODE=0 -DAVOID_SMC=0 -DUSE_EVENTS=1 -DUSE_SID_EVENTS=0 -DDUMP_SONG=0 -D_RMAC_=1 -D_VASM_=0 PlayerAky.s >NUL
call :strip_listing generated_players\player_events.s
bin\rmac -l*player.lst -DUNROLLED_CODE=1 -DSID_VOICES=0 -DPC_REL_CODE=0 -DAVOID_SMC=0 -DUSE_EVENTS=1 -DUSE_SID_EVENTS=0 -DDUMP_SONG=0 -D_RMAC_=1 -D_VASM_=0 PlayerAky.s >NUL
call :strip_listing generated_players\player_unrolled_events.s
bin\rmac -l*player.lst -DUNROLLED_CODE=0 -DSID_VOICES=1 -DPC_REL_CODE=0 -DAVOID_SMC=0 -DUSE_EVENTS=1 -DUSE_SID_EVENTS=1 -DDUMP_SONG=0 -D_RMAC_=1 -D_VASM_=0 PlayerAky.s >NUL
call:strip_listing generated_players\player_sid_events_sidevents.s
bin\rmac -l*player.lst -DUNROLLED_CODE=1 -DSID_VOICES=1 -DPC_REL_CODE=0 -DAVOID_SMC=0 -DUSE_EVENTS=1 -DUSE_SID_EVENTS=1 -DDUMP_SONG=0 -D_RMAC_=1 -D_VASM_=0 PlayerAky.s >NUL
call:strip_listing generated_players\player_unrolled_sid_events_sidevents.s
bin\rmac -l*player.lst -DUNROLLED_CODE=0 -DSID_VOICES=0 -DPC_REL_CODE=0 -DAVOID_SMC=0 -DUSE_EVENTS=0 -DUSE_SID_EVENTS=0 -DDUMP_SONG=1 -D_RMAC_=1 -D_VASM_=0 PlayerAky.s >NUL
call :strip_listing generated_players\player_dump.s
bin\rmac -l*player.lst -DUNROLLED_CODE=0 -DSID_VOICES=0 -DPC_REL_CODE=0 -DAVOID_SMC=1 -DUSE_EVENTS=0 -DUSE_SID_EVENTS=0 -DDUMP_SONG=0 -D_RMAC_=1 -D_VASM_=0 PlayerAky.s >NUL
call :strip_listing generated_players\player_no_smc.s
del PlayerAky.o
exit /b
:strip_listing
bin\sed -e^
"s/^......................................\...*//gI"^
-e "s/^......................................-..*//gI"^
-e "s/.*endif.*//gI"^
-e "s/.* if.*//gI"^
-e "s/.*else.*//gI"^
-e "s/.*movex.*//gI"^
-e "s/.*macro readregs.*//gI"^
-e "s/.*readregs 8,.,..*//gI"^
-e "s/.*readregs 9,.,..*//gI"^
-e "s/.*readregs 10,.,..*//gI"^
-e "/^readregsout/d"^
-e "s/.* a .*//gI"^
-e "s/.* t .*//gI"^
-e "s/^........................................//gI"^
-e "s/undefined.*//gI"^
-e "s/^ .*a $//gI"^
-e "/^\s*$/d"^
-e "s/ *-PLY_AKYst_NIS_JP/-PLY_AKYst_NIS_JP/"^
-e "s/ *-PLY_AKYst_IS/-PLY_AKYst_IS/"^
Player.lst > %1
del player.lst
exit /b