mirror of
https://github.com/Druthulu/BFM-decomp
synced 2026-09-27 22:45:39 -04:00
2f65dea685
One clean whole-EXE rebuild verified the batch (gate_main), and main re-checked BYTE-IDENTICAL against config/check.us.sha before anything was credited. DrawPrim DsDataCallback DsSyncCallback Intpl SpuWrite __do_global_dtors func_80013F98 func_80028E88
23 lines
558 B
C
23 lines
558 B
C
#include "common.h"
|
|
|
|
/* libspu SpuWrite: clamp the transfer size to 0x7EFF0, hand off to the writer
|
|
* func_8003AE14; if the transfer flag D_8006B584 is clear, clear the status
|
|
* word D_8006B580. Returns the (possibly clamped) size. */
|
|
s32 SpuWrite(addr, size)
|
|
s32 addr;
|
|
s32 size;
|
|
{
|
|
extern void func_8003AE14(s32 addr, s32 size);
|
|
extern s32 D_8006B584;
|
|
extern s32 D_8006B580;
|
|
|
|
if ((u32)size > 0x7EFF0) {
|
|
size = 0x7EFF0;
|
|
}
|
|
func_8003AE14(addr, size);
|
|
if (D_8006B584 == 0) {
|
|
D_8006B580 = 0;
|
|
}
|
|
return size;
|
|
}
|