Files
BFM-decomp/src/sgap.c
T
Drew T 2f65dea685 feat(decomp): main lane m20 — 8 banked
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
2026-08-25 05:26:57 -06:00

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;
}