summaryrefslogtreecommitdiff
path: root/src/n64/gbi-otr.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/n64/gbi-otr.h')
-rw-r--r--src/n64/gbi-otr.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/n64/gbi-otr.h b/src/n64/gbi-otr.h
index 0ee659c..a5bb09e 100644
--- a/src/n64/gbi-otr.h
+++ b/src/n64/gbi-otr.h
@@ -19,6 +19,7 @@
#define G_MTX_OTR 0x36
#define G_TEXRECT_WIDE 0x37
#define G_FILLWIDERECT 0x38
+#define G_DL_OTR_INDEX 0x3D
#define G_MOVEMEM_OTR_HASH 0x42
// DL FLAGS
@@ -162,6 +163,13 @@ _DW({
(uintptr_t)(dl) \
}}
+#define gsSPDisplayListOTRIndex(dl) \
+ {{ \
+ (_SHIFTL((G_DL_OTR_INDEX), 24, 8) | _SHIFTL((0x00), 16, 8) | \
+ _SHIFTL((0), 0, 16)), \
+ (uintptr_t)((SEGMENT_NUMBER(dl) << 24) | ((SEGMENT_OFFSET(dl) / 8) & 0x00FFFFFF)) \
+ }}
+
#define gsSPDisplayListOTRFilePath(dl) \
{{ \
(_SHIFTL((G_DL_OTR_FILEPATH), 24, 8) | _SHIFTL((0x00), 16, 8) | \