SBird1337 преди 7 години
родител
ревизия
6a09f71944
променени са 5 файла, в които са добавени 25 реда и са изтрити 10 реда
  1. 1
    1
      data/raw_defines.s
  2. 22
    0
      data/title_pal.s
  3. 2
    1
      makefile
  4. 0
    8
      src/include/script_language.h
  5. Двоични данни
      src/test/a.out

+ 1
- 1
data/raw_defines.s Целия файл

@@ -16,4 +16,4 @@ save_one:
16 16
 
17 17
 .global ts_pals
18 18
 ts_pals:
19
-    .incbin "sots-private/assets/misc/title/pal.bin"
19
+    .include "data/title_pal.s"

+ 22
- 0
data/title_pal.s Целия файл

@@ -0,0 +1,22 @@
1
+/* Generated by BIN2S - please don't edit directly */
2
+	.section .rodata
3
+	.balign 4
4
+	.global pal_sth_bin_size
5
+	.global pal_sth_bin
6
+pal_sth_bin:
7
+	.byte   0,  2, 69, 73,166, 89,120, 10,235, 77, 47, 42, 30,  7,228, 56
8
+	.byte 102, 81,134, 85,169, 77, 49, 42,219,  6,253,  6, 63,  3,237, 65
9
+	.byte 150, 34,230, 52,189,127,  0,  0,173,106,255,127, 73, 94,188,123
10
+	.byte   7, 86, 87,119,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0
11
+	.byte   0,  0,136, 73,  7, 53,118,127,240,126, 43, 94,243, 36,191, 74
12
+	.byte 231, 24,223, 37, 59, 41,174,110,202,105,140, 45,222,123, 73, 65
13
+	.byte   0,  2,239, 57,  0,  0, 41, 33,189,127,198, 20,181, 86,132, 12
14
+	.byte  99,  8, 33,  4,231, 24,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0
15
+	.byte   0,  0,174,110,240,126, 43, 94,140, 45,198, 20,136, 73,157, 22
16
+	.byte 231, 24,118,127,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0
17
+
18
+	.global pal_sth_bin_end
19
+pal_sth_bin_end:
20
+
21
+	.align
22
+pal_sth_bin_size: .int 160

+ 2
- 1
makefile Целия файл

@@ -23,7 +23,7 @@ CHARMAP := charmap.txt
23 23
 
24 24
 DEFINES   := -DBPRE -DSOFTWARE_VERSION=0
25 25
 ASFLAGS   := -mthumb
26
-CFLAGS    := -mthumb -mthumb-interwork -g -mcpu=arm7tdmi -fno-inline -mlong-calls -march=armv4t -Og -std=c11 -Wall -Wextra -Wunreachable-code -I$(PAGB_INCLUDE) -Isrc/include -Igenerated_image -fdiagnostics-color $(DEFINES)
26
+CFLAGS    := -mthumb -mthumb-interwork -g -mcpu=arm7tdmi -fno-inline -fdiagnostics-show-option -fdiagnostics-color=always -mlong-calls -march=armv4t -Og -std=c11 -Wall -Wextra -Wunreachable-code -I$(PAGB_INCLUDE) -Isrc/include -Igenerated_image -fdiagnostics-color $(DEFINES)
27 27
 GRITFLAGS := -ftc -fa
28 28
 LDFLAGS   := -z muldefs
29 29
 BLDPATH   := object
@@ -107,6 +107,7 @@ $(B_ENGINE):
107 107
 .PHONY: clean
108 108
 clean:
109 109
 	rm -f  $(OUTPATH)/__symbols.sym $(OUTPATH)/pkmn_sots.gba
110
+	rm -rf generated_image/*
110 111
 	rm -R -f object/*
111 112
 	$(MAKE) -C $(dir $(MUSIC_AR)) clean
112 113
 	$(MAKE) -C $(dir $(SMPL_AR)) clean

+ 0
- 8
src/include/script_language.h Целия файл

@@ -1,14 +1,6 @@
1 1
 #include <config.h>
2 2
 #include <applymovements.h>
3 3
 
4
-@@ string macros
5
-
6
-.macro stringlocal language string
7
-    .ifdef \language
8
-        .string \string
9
-    .endif
10
-.endm
11
-
12 4
 @@ Compare operands
13 5
 .equ B_LT, 0x0
14 6
 .equ B_EQ, 0x1

Двоични данни
src/test/a.out Целия файл