parse_abi.c 449 Bytes
#include <ultra64.h>
#include <libaudio.h>
#include <ultrahost.h>
#include <gu.h>

#ifndef _FINALROM
void alParseAbiCL(Acmd *cmdList, u32 nbytes)
{
    guDLPrintCB    cntlBlk;

    cntlBlk.dataSize = nbytes;
    cntlBlk.flags = 0;
    cntlBlk.dlType = GU_PARSE_ABI_TYPE;
    cntlBlk.paddr = osVirtualToPhysical(cmdList);
    
    osWriteHost(&cntlBlk,sizeof(cntlBlk));
    osWriteHost(cmdList,nbytes);

}  
        
#endif