mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-22 12:05:11 +00:00
75bb9b7912
* Refresh 13 Co-authored-by: n64 <n64>
13 lines
355 B
C
13 lines
355 B
C
#ifndef HELPERS_H
|
|
#define HELPERS_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#define MEM_U32(a) (*(uint32_t *)(mem + a))
|
|
#define MEM_S32(a) (*(int32_t *)(mem + a))
|
|
#define MEM_U16(a) (*(uint16_t *)(mem + ((a) ^ 2)))
|
|
#define MEM_S16(a) (*(int16_t *)(mem + ((a) ^ 2)))
|
|
#define MEM_U8(a) (*(uint8_t *)(mem + ((a) ^ 3)))
|
|
#define MEM_S8(a) (*(int8_t *)(mem + ((a) ^ 3)))
|
|
|
|
#endif
|