drafting an asm parser (rudimentary)

This commit is contained in:
ed
2026-09-09 19:09:06 -04:00
parent 6bb1386995
commit e24b68028c
7 changed files with 476 additions and 138 deletions
+20
View File
@@ -0,0 +1,20 @@
#ifdef INTELLISENSE_DIRECTIVES
# pragma once
# include "decoder.h"
#endif
typedef Struct_(X8616_ParseRequest) {
Str8 source;
X8616_DecodedInstruction* out_instructions;
U4 instruction_cap;
FArena* info_arena;
X8616_InfoList_R msgs;
};
typedef Struct_(X8616_ParseInfo) {
X8616_InfoList msgs;
U4 instruction_count;
U4 source_consumed;
};
X8616_ParseInfo x8616_parse_instructions(X8616_ParseRequest request);