mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-08-04 17:38:29 -05:00
Old structure: put everything in lib/include New structure: put library includes in their respective library folder. e.g. lib/NitroDWC/include/dwc.h
33 lines
480 B
C
33 lines
480 B
C
#ifndef NITRO_MI_BYTEACCESS_H_
|
|
#define NITRO_MI_BYTEACCESS_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <nitro/ioreg.h>
|
|
|
|
#ifdef SDK_TEG
|
|
u8 MI_ReadByte(const void * address);
|
|
#else
|
|
static inline u8 MI_ReadByte (const void * address)
|
|
{
|
|
return *(u8 *)address;
|
|
}
|
|
#endif
|
|
|
|
#ifdef SDK_TEG
|
|
void MI_WriteByte(void * address, u8 value);
|
|
#else
|
|
static inline void MI_WriteByte (void * address, u8 value)
|
|
{
|
|
*(u8 *)address = value;
|
|
}
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|