starting to prep to decode instructions

This commit is contained in:
ed
2026-08-07 10:01:20 -04:00
parent 823ec3d499
commit aa9c4d48f6
3 changed files with 51 additions and 0 deletions
+1
View File
@@ -18,6 +18,7 @@ typedef Struct_(R1_U2){ U2 p0; U2 p1; };
typedef Struct_(R1_U4){ U4 p0; U2 p1; };
typedef Struct_(R1_U8){ U8 p0; U8 p1; };
#define r1u4(p0,p1) (R1_U4){p0,p1}
#define r1u8(p0,p1) (R1_U8){p0,p1}
typedef Struct_(V2_U1){ U1 x; U1 y;};
+1
View File
@@ -68,6 +68,7 @@ typedef Struct_(Str8) { UTF8* ptr; U8 len; };
typedef Str8 Slice_UTF8;
typedef Struct_(Slice_Str8) { Str8* ptr; U8 len; };
#define slit8(string_literal) (Str8){ (UTF8*) string_literal, S_(string_literal) - 1 }
#define str8(p,l) (Str8){p,l}
typedef Struct_(Slice) { U8 ptr; U8 len; }; // Untyped Slice
FI_ Slice slice_ut_(U8 ptr, U8 len) { return (Slice){ptr, len}; }