Skip to content

Commit 64fc98e

Browse files
committed
Match 18 hw60 action48 callbacks
1 parent 39d2711 commit 64fc98e

36 files changed

Lines changed: 522 additions & 1044 deletions

File tree

src/overlays/ov127/asm_stubs/calls/func_ov127_020cccc8.c

Lines changed: 0 additions & 58 deletions
This file was deleted.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
extern void func_ov107_020c5af8(int a, int b, int c, int d);
2+
extern void func_0203c634(void *node, int idx, void *value);
3+
extern void func_ov127_020ccd94(void);
4+
5+
struct ov127_Hw60 {
6+
unsigned short lo : 8;
7+
unsigned short hi : 8;
8+
};
9+
10+
struct ov127_LowByteFlags {
11+
unsigned bits : 8;
12+
};
13+
14+
void func_ov127_020cccc8(int *node) {
15+
int *state = (int *)node[1];
16+
17+
{
18+
unsigned short hw60 = *(unsigned short *)(*state + 0x60);
19+
*(unsigned short *)(*state + 0x60) =
20+
(hw60 & ~0xff00) | (((((unsigned int)hw60 << 0x10) >> 0x18 | 0x80) << 0x18) >> 0x10);
21+
}
22+
23+
((struct ov127_Hw60 *)(*state + 0x60))->hi &= ~0xc;
24+
*(unsigned short *)(*state + 0x1ae) |= 1;
25+
((struct ov127_LowByteFlags *)(*(int *)(*state + 0x388) + 8))->bits &= ~1;
26+
func_ov107_020c5af8(*state, 0, 0x48, state[4]);
27+
state[11] = 0;
28+
func_0203c634(node, *(signed char *)(node + 8), func_ov127_020ccd94);
29+
}

src/overlays/ov128/asm_stubs/calls/func_ov128_020d4548.c

Lines changed: 0 additions & 58 deletions
This file was deleted.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
extern void func_ov107_020c5af8(int a, int b, int c, int d);
2+
extern void func_0203c634(void *node, int idx, void *value);
3+
extern void func_ov128_020d4614(void);
4+
5+
struct ov128_Hw60 {
6+
unsigned short lo : 8;
7+
unsigned short hi : 8;
8+
};
9+
10+
struct ov128_LowByteFlags {
11+
unsigned bits : 8;
12+
};
13+
14+
void func_ov128_020d4548(int *node) {
15+
int *state = (int *)node[1];
16+
17+
{
18+
unsigned short hw60 = *(unsigned short *)(*state + 0x60);
19+
*(unsigned short *)(*state + 0x60) =
20+
(hw60 & ~0xff00) | (((((unsigned int)hw60 << 0x10) >> 0x18 | 0x80) << 0x18) >> 0x10);
21+
}
22+
23+
((struct ov128_Hw60 *)(*state + 0x60))->hi &= ~0xc;
24+
*(unsigned short *)(*state + 0x1ae) |= 1;
25+
((struct ov128_LowByteFlags *)(*(int *)(*state + 0x388) + 8))->bits &= ~1;
26+
func_ov107_020c5af8(*state, 0, 0x48, state[4]);
27+
state[11] = 0;
28+
func_0203c634(node, *(signed char *)(node + 8), func_ov128_020d4614);
29+
}

src/overlays/ov129/asm_stubs/calls/func_ov129_020d6368.c

Lines changed: 0 additions & 58 deletions
This file was deleted.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
extern void func_ov107_020c5af8(int a, int b, int c, int d);
2+
extern void func_0203c634(void *node, int idx, void *value);
3+
extern void func_ov129_020d6434(void);
4+
5+
struct ov129_Hw60 {
6+
unsigned short lo : 8;
7+
unsigned short hi : 8;
8+
};
9+
10+
struct ov129_LowByteFlags {
11+
unsigned bits : 8;
12+
};
13+
14+
void func_ov129_020d6368(int *node) {
15+
int *state = (int *)node[1];
16+
17+
{
18+
unsigned short hw60 = *(unsigned short *)(*state + 0x60);
19+
*(unsigned short *)(*state + 0x60) =
20+
(hw60 & ~0xff00) | (((((unsigned int)hw60 << 0x10) >> 0x18 | 0x80) << 0x18) >> 0x10);
21+
}
22+
23+
((struct ov129_Hw60 *)(*state + 0x60))->hi &= ~0xc;
24+
*(unsigned short *)(*state + 0x1ae) |= 1;
25+
((struct ov129_LowByteFlags *)(*(int *)(*state + 0x388) + 8))->bits &= ~1;
26+
func_ov107_020c5af8(*state, 0, 0x48, state[4]);
27+
state[11] = 0;
28+
func_0203c634(node, *(signed char *)(node + 8), func_ov129_020d6434);
29+
}

src/overlays/ov130/asm_stubs/calls/func_ov130_020cccc8.c

Lines changed: 0 additions & 58 deletions
This file was deleted.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
extern void func_ov107_020c5af8(int a, int b, int c, int d);
2+
extern void func_0203c634(void *node, int idx, void *value);
3+
extern void func_ov130_020ccd94(void);
4+
5+
struct ov130_Hw60 {
6+
unsigned short lo : 8;
7+
unsigned short hi : 8;
8+
};
9+
10+
struct ov130_LowByteFlags {
11+
unsigned bits : 8;
12+
};
13+
14+
void func_ov130_020cccc8(int *node) {
15+
int *state = (int *)node[1];
16+
17+
{
18+
unsigned short hw60 = *(unsigned short *)(*state + 0x60);
19+
*(unsigned short *)(*state + 0x60) =
20+
(hw60 & ~0xff00) | (((((unsigned int)hw60 << 0x10) >> 0x18 | 0x80) << 0x18) >> 0x10);
21+
}
22+
23+
((struct ov130_Hw60 *)(*state + 0x60))->hi &= ~0xc;
24+
*(unsigned short *)(*state + 0x1ae) |= 1;
25+
((struct ov130_LowByteFlags *)(*(int *)(*state + 0x388) + 8))->bits &= ~1;
26+
func_ov107_020c5af8(*state, 0, 0x48, state[4]);
27+
state[11] = 0;
28+
func_0203c634(node, *(signed char *)(node + 8), func_ov130_020ccd94);
29+
}

0 commit comments

Comments
 (0)