move pxi_init and gxasm to c

This commit is contained in:
Seth Barberee
2026-05-28 08:30:05 -07:00
parent 3a9f0d83c1
commit 1e618d498f
9 changed files with 82 additions and 38 deletions

View File

@@ -4,5 +4,7 @@
#include <nitro/types.h>
#include <nitro/os.h>
#include <nitro/cp.h>
#include <nitro/pxi.h>
#include <nitro/gx.h>
#endif //NITRO_H_

6
lib/include/nitro/gx.h Normal file
View File

@@ -0,0 +1,6 @@
#ifndef NITRO_GX_H_
#define NITRO_GX_H_
#include <nitro/gx/gxasm.h>
#endif //NITRO_GX_H_

View File

@@ -0,0 +1,24 @@
#ifndef NITRO_GXASM_H_
#define NITRO_GXASM_H_
//#include <nitro/mi/memory.h>
#ifdef __cplusplus
extern "C" {
#endif
//void GX_SendFifo36B(register const void * pSrc, register void * pDest);
void GX_SendFifo48B(register const void * pSrc, register void * pDest);
void GX_SendFifo64B(register const void * pSrc, register void * pDest);
//void GX_SendFifo128B(register const void * pSrc, register void * pDest);
//static inline void GX_SendFifo36B (register const void * pSrc, register void * pDest)
//{
// MI_Copy36B(pSrc, pDest);
//}
#ifdef __cplusplus
}
#endif
#endif

6
lib/include/nitro/pxi.h Normal file
View File

@@ -0,0 +1,6 @@
#ifndef NITRO_PXI_H_
#define NITRO_PXI_H_
#include <nitro/pxi/common/init.h>
#endif //NITRO_PXI_H_

View File

@@ -0,0 +1,14 @@
#ifndef NITRO_PXI_COMMON_INIT_H_
#define NITRO_PXI_COMMON_INIT_H_
#ifdef __cplusplus
extern "C" {
#endif
void PXI_Init(void);
#ifdef __cplusplus
}
#endif
#endif