summaryrefslogtreecommitdiff
path: root/src/compiler/code-generator.h
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-01-30 04:50:11 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-01-30 04:50:11 +0330
commite6122f465cd8b8eebcc2657321cf7cf5732408a8 (patch)
tree127d56cab08e99b0999c909db98a417656bf001f /src/compiler/code-generator.h
parent6441d6ace4b3ebdc04e3e7fee212830f783eecb0 (diff)
added global variables (not constants)
Diffstat (limited to 'src/compiler/code-generator.h')
-rw-r--r--src/compiler/code-generator.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/code-generator.h b/src/compiler/code-generator.h
index 03415a4..05a6bf4 100644
--- a/src/compiler/code-generator.h
+++ b/src/compiler/code-generator.h
@@ -8,6 +8,7 @@ typedef enum CodeGeneratorInstruction : uint8_t {
CODE_GENERATOR_INSTRUCTION_PRINT_U64,
CODE_GENERATOR_INSTRUCTION_CALL,
CODE_GENERATOR_INSTRUCTION_RET,
+ CODE_GENERATOR_INSTRUCTION_DEF_VAR64,
} CodeGeneratorInstruction;
typedef struct CodeGeneratorCode {
@@ -22,7 +23,7 @@ typedef struct CodeGeneratorCall {
char *label_end;
} CodeGeneratorCall;
-typedef uint64_t CodeGeneratorOperandU64;
+typedef char *CodeGeneratorOperand;
typedef struct CodeGeneratorCodes {
CodeGeneratorCode *codes;