summaryrefslogtreecommitdiffstats
path: root/courgette/encoded_program.h
diff options
context:
space:
mode:
Diffstat (limited to 'courgette/encoded_program.h')
-rw-r--r--courgette/encoded_program.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/courgette/encoded_program.h b/courgette/encoded_program.h
index df1119c..25bc075 100644
--- a/courgette/encoded_program.h
+++ b/courgette/encoded_program.h
@@ -54,7 +54,18 @@ class EncodedProgram {
bool AssembleTo(SinkStream *buffer);
private:
- enum OP; // Binary assembly language operations.
+ // Binary assembly language operations.
+ enum OP {
+ ORIGIN, // ORIGIN <rva> - set address for subsequent assembly.
+ COPY, // COPY <count> <bytes> - copy bytes to output.
+ COPY1, // COPY1 <byte> - same as COPY 1 <byte>.
+ REL32, // REL32 <index> - emit rel32 encoded reference to address at
+ // address table offset <index>
+ ABS32, // ABS32 <index> - emit abs32 encoded reference to address at
+ // address table offset <index>
+ MAKE_BASE_RELOCATION_TABLE, // Emit base relocation table blocks.
+ OP_LAST
+ };
void DebuggingSummary();
void GenerateBaseRelocations(SinkStream *buffer);
@@ -80,4 +91,4 @@ class EncodedProgram {
};
} // namespace courgette
-#endif // COURGETTE_ENCODED_FORMAT_H_
+#endif // COURGETTE_ENCODED_PROGRAM_H_