mirror of
https://github.com/FireEmblemUniverse/fireemblem8u.git
synced 2024-11-26 22:50:45 +00:00
Move hand-written assembly source files from asm/ to src/
This commit is contained in:
parent
6774b90705
commit
fd4f705655
6
.gitignore
vendored
6
.gitignore
vendored
@ -951,3 +951,9 @@ sound/songs/midi/*.s
|
||||
# Generated source files
|
||||
src/msg_data.c
|
||||
include/msg_data.h
|
||||
|
||||
# Source files written in ASM
|
||||
!src/rom_header.s
|
||||
!src/crt0.s
|
||||
!src/m4a_1.s
|
||||
!src/libagbsyscall.s
|
||||
|
6
Makefile
6
Makefile
@ -70,9 +70,11 @@ ifeq (,$(findstring $(CFILES_GENERATED),$(CFILES)))
|
||||
CFILES += $(CFILES_GENERATED)
|
||||
endif
|
||||
ASM_S_FILES := $(wildcard $(ASM_SUBDIR)/*.s)
|
||||
SRC_S_FILES := $(wildcard $(C_SUBDIR)/*.s)
|
||||
DATA_S_FILES := $(wildcard $(DATA_SUBDIR)/*.s)
|
||||
SOUND_S_FILES := $(wildcard sound/*.s sound/songs/*.s sound/songs/mml/*.s sound/voicegroups/*.s)
|
||||
SFILES := $(ASM_S_FILES) $(DATA_S_FILES) $(SOUND_S_FILES)
|
||||
SFILES := $(ASM_S_FILES) $(SRC_S_FILES) $(DATA_S_FILES) $(SOUND_S_FILES)
|
||||
SFILES_COMPILED := $(CFILES:.c=.s)
|
||||
C_OBJECTS := $(CFILES:.c=.o)
|
||||
ASM_OBJECTS := $(SFILES:.s=.o)
|
||||
BANIM_OBJECT := data/banim/data_banim.o
|
||||
@ -100,7 +102,7 @@ compare: $(ROM)
|
||||
|
||||
clean:
|
||||
find . \( -iname '*.1bpp' -o -iname '*.4bpp' -o -iname '*.8bpp' -o -iname '*.gbapal' -o -iname '*.lz' -o -iname '*.fk' -o -iname '*.latfont' -o -iname '*.hwjpnfont' -o -iname '*.fwjpnfont' \) -exec rm {} +
|
||||
$(RM) $(ROM) $(ELF) $(MAP) $(ALL_OBJECTS) $(OBJECTS_LST) src/*.s graphics/*.h $(CFILES_GENERATED)
|
||||
$(RM) $(ROM) $(ELF) $(MAP) $(ALL_OBJECTS) $(OBJECTS_LST) $(SFILES_COMPILED) graphics/*.h $(CFILES_GENERATED)
|
||||
$(RM) -rf $(DEPS_DIR)
|
||||
# Remove battle animation binaries
|
||||
$(RM) -f data/banim/*.bin data/banim/*.o data/banim/*.lz data/banim/*.bak
|
||||
|
@ -289,7 +289,8 @@ SECTIONS
|
||||
ALIGN(4)
|
||||
{
|
||||
/* .text */
|
||||
asm/crt0.o(.text);
|
||||
src/rom_header.o(.text);
|
||||
src/crt0.o(.text);
|
||||
asm/arm.o(.text);
|
||||
src/main.o(.text);
|
||||
src/fe3_dummy.o(.text);
|
||||
@ -608,9 +609,9 @@ SECTIONS
|
||||
src/classchg-menuselect.o(.text);
|
||||
src/classchg-postconfirm.o(.text);
|
||||
src/bmguide.o(.text);
|
||||
asm/m4a_1.o(.text);
|
||||
src/m4a_1.o(.text);
|
||||
src/m4a.o(.text);
|
||||
asm/libagbsyscall.o(.text);
|
||||
src/libagbsyscall.o(.text);
|
||||
src/agb_sram.o(.text);
|
||||
*libgcc.a:_ashldi3.o(.text);
|
||||
*libgcc.a:_call_via_rX.o(.text);
|
||||
|
@ -3,11 +3,6 @@
|
||||
|
||||
.include "gba.inc"
|
||||
|
||||
.global Init
|
||||
Init:
|
||||
b crt0
|
||||
.include "asm/rom_header.inc"
|
||||
|
||||
.global crt0
|
||||
crt0:
|
||||
@ Switch to IRQ Mode
|
@ -1,3 +1,10 @@
|
||||
.syntax unified
|
||||
.arm
|
||||
|
||||
.global Init
|
||||
Init:
|
||||
b crt0
|
||||
|
||||
.global RomHeaderNintendoLogo
|
||||
RomHeaderNintendoLogo:
|
||||
.byte 0x24,0xff,0xae,0x51,0x69,0x9a,0xa2,0x21
|
Loading…
Reference in New Issue
Block a user