Mercurial > hg-old > index.cgi
comparison src/lwasm.h @ 46:b962cee20bf4
Ported output modules forward from old version
author | lost |
---|---|
date | Sun, 04 Jan 2009 07:07:00 +0000 |
parents | 2330b88f9600 |
children | 21ae0fab469b |
comparison
equal
deleted
inserted
replaced
45:be459d69f481 | 46:b962cee20bf4 |
---|---|
27 #include "expr.h" | 27 #include "expr.h" |
28 | 28 |
29 #define OUTPUT_DECB 0 // DECB multirecord format | 29 #define OUTPUT_DECB 0 // DECB multirecord format |
30 #define OUTPUT_RAW 1 // raw sequence of bytes | 30 #define OUTPUT_RAW 1 // raw sequence of bytes |
31 #define OUTPUT_OBJ 2 // proprietary object file format | 31 #define OUTPUT_OBJ 2 // proprietary object file format |
32 | 32 #define OUTPUT_RAWREL 3 // raw bytes where ORG causes a SEEK in the file |
33 | 33 |
34 // structure for tracking errors | 34 // structure for tracking errors |
35 typedef struct lwasm_error_s lwasm_error_t; | 35 typedef struct lwasm_error_s lwasm_error_t; |
36 struct lwasm_error_s | 36 struct lwasm_error_s |
37 { | 37 { |
52 char *sym; // scratch area to record the presence of a symbol | 52 char *sym; // scratch area to record the presence of a symbol |
53 unsigned char *bytes; // actual bytes emitted | 53 unsigned char *bytes; // actual bytes emitted |
54 int codelen; // number of bytes emitted | 54 int codelen; // number of bytes emitted |
55 int codesize; // the size of the code buffer | 55 int codesize; // the size of the code buffer |
56 int codeaddr; // address the code goes at | 56 int codeaddr; // address the code goes at |
57 int nocodelen; // for "RMB" type instructions | |
57 }; | 58 }; |
58 | 59 |
59 // for keeping track of symbols | 60 // for keeping track of symbols |
60 typedef struct lwasm_symbol_ent_s lwasm_symbol_ent_t; | 61 typedef struct lwasm_symbol_ent_s lwasm_symbol_ent_t; |
61 struct lwasm_symbol_ent_s | 62 struct lwasm_symbol_ent_s |