move data to code_8002774

This commit is contained in:
Seth Barberee 2025-04-10 21:01:22 -07:00
parent 03f022c2d5
commit 3d0d77d9e7
4 changed files with 24 additions and 20 deletions

View File

@ -1005,22 +1005,3 @@ gUnknown_80B7DF8:
@ ???
.string "pksdir0\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
View File

@ -0,0 +1,9 @@
.section .rodata
.align 2, 0
@ ???
.string "pksdir0\0"
.align 2, 0

View File

@ -427,6 +427,8 @@ SECTIONS {
{
src/main_loops.o(.rodata);
data/data.o(.rodata);
src/code_8002774.o(.rodata);
data/pksdir_5.o(.rodata);
src/memory.o(.rodata);
data/data1.o(.rodata);
src/random.o(.rodata);

View File

@ -1,4 +1,5 @@
#include "global.h"
#include "globaldata.h"
#include "code_8002774.h"
#include "constants/direction.h"
#include "structs/str_position.h"
@ -11,7 +12,18 @@ struct S
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);