mirror of
https://github.com/pret/pmd-red.git
synced 2026-04-26 08:19:51 -05:00
move data to code_8002774
This commit is contained in:
parent
03f022c2d5
commit
3d0d77d9e7
19
data/data.s
19
data/data.s
|
|
@ -1005,22 +1005,3 @@ gUnknown_80B7DF8:
|
||||||
@ ???
|
@ ???
|
||||||
.string "pksdir0\0"
|
.string "pksdir0\0"
|
||||||
.fill 28, 1, 0
|
.fill 28, 1, 0
|
||||||
|
|
||||||
@ code_8002774.s
|
|
||||||
.string "pksdir0\0"
|
|
||||||
.fill 8, 1, 0
|
|
||||||
|
|
||||||
.global gVectorDirections
|
|
||||||
gVectorDirections: @ R=080B7E3C | B=0208772C
|
|
||||||
.4byte 0, 1 @N
|
|
||||||
.4byte 1, 1 @NE
|
|
||||||
.4byte 1, 0 @E
|
|
||||||
.4byte 1, -1 @SE
|
|
||||||
.4byte 0, -1 @S
|
|
||||||
.4byte -1, -1 @SW
|
|
||||||
.4byte -1, 0 @W
|
|
||||||
.4byte -1, 1 @NW
|
|
||||||
|
|
||||||
@ ???
|
|
||||||
.string "pksdir0\0"
|
|
||||||
|
|
||||||
|
|
|
||||||
9
data/pksdir_5.s
Normal file
9
data/pksdir_5.s
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
.section .rodata
|
||||||
|
|
||||||
|
.align 2, 0
|
||||||
|
|
||||||
|
|
||||||
|
@ ???
|
||||||
|
.string "pksdir0\0"
|
||||||
|
.align 2, 0
|
||||||
|
|
||||||
|
|
@ -427,6 +427,8 @@ SECTIONS {
|
||||||
{
|
{
|
||||||
src/main_loops.o(.rodata);
|
src/main_loops.o(.rodata);
|
||||||
data/data.o(.rodata);
|
data/data.o(.rodata);
|
||||||
|
src/code_8002774.o(.rodata);
|
||||||
|
data/pksdir_5.o(.rodata);
|
||||||
src/memory.o(.rodata);
|
src/memory.o(.rodata);
|
||||||
data/data1.o(.rodata);
|
data/data1.o(.rodata);
|
||||||
src/random.o(.rodata);
|
src/random.o(.rodata);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
#include "global.h"
|
#include "global.h"
|
||||||
|
#include "globaldata.h"
|
||||||
#include "code_8002774.h"
|
#include "code_8002774.h"
|
||||||
#include "constants/direction.h"
|
#include "constants/direction.h"
|
||||||
#include "structs/str_position.h"
|
#include "structs/str_position.h"
|
||||||
|
|
@ -11,7 +12,18 @@ struct S
|
||||||
u8 x0[UNK_STRUCT_ARR_COUNT];
|
u8 x0[UNK_STRUCT_ARR_COUNT];
|
||||||
};
|
};
|
||||||
|
|
||||||
extern const PixelPos gVectorDirections[8];
|
const u8 sUnknown_8002774[] = {0, 0, 0, 0, 0, 0, 0, 0};
|
||||||
|
|
||||||
|
const PixelPos gVectorDirections[NUM_DIRECTIONS] = {
|
||||||
|
{0, 1}, // N
|
||||||
|
{1, 1}, // NE
|
||||||
|
{1, 0}, // E
|
||||||
|
{1, -1}, // SE
|
||||||
|
{0, -1}, // S
|
||||||
|
{-1, -1}, // SW
|
||||||
|
{-1, 0}, // W
|
||||||
|
{-1, 1}, // NW
|
||||||
|
};
|
||||||
|
|
||||||
static s8 VecDirection4Radial(PixelPos *pixelPos);
|
static s8 VecDirection4Radial(PixelPos *pixelPos);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user