summaryrefslogtreecommitdiff
path: root/arm9/lib/include/MI_byteAccess.h
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2020-05-09 12:19:21 -0400
committerGitHub <noreply@github.com>2020-05-09 12:19:21 -0400
commit4a32bb288b5af3333a47e33d1ba9a83485ff1052 (patch)
treebb77ed81792d2e4dfe4370eb45ee0a53a3f02626 /arm9/lib/include/MI_byteAccess.h
parentf76cec09f8a2995244256d4b097d9eed2bebd34a (diff)
parente660f7a7f749242dc73851d47e806b96783bc47d (diff)
Merge pull request #65 from PikalaxALT/libfs
Libfs
Diffstat (limited to 'arm9/lib/include/MI_byteAccess.h')
-rw-r--r--arm9/lib/include/MI_byteAccess.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/arm9/lib/include/MI_byteAccess.h b/arm9/lib/include/MI_byteAccess.h
new file mode 100644
index 00000000..cad4d518
--- /dev/null
+++ b/arm9/lib/include/MI_byteAccess.h
@@ -0,0 +1,14 @@
+#ifndef NITRO_MI_BYTEACCESS_H_
+#define NITRO_MI_BYTEACCESS_H_
+
+static inline u8 MI_ReadByte(const void *address)
+{
+ return *(u8 *)address;
+}
+
+static inline void MI_WriteByte(void *address, u8 value)
+{
+ *(u8 *)address = value;
+}
+
+#endif //NITRO_MI_BYTEACCESS_H_