-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstruct.h
More file actions
53 lines (40 loc) · 826 Bytes
/
struct.h
File metadata and controls
53 lines (40 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
//text aani bss sathi symbol table structre
typedef struct symbolTabl{
int index;
int lineNo;
char *name;
char *type;
char *section;
char *value;
struct symbolTabl *pNext;
}sTable;
typedef struct textSymbolTable{
int index;
int lineNo;
int value;
char *name;
char *type;
char *section;
struct textSymbolTable *pNext;
}tSymbolTable;
typedef struct opcodeTable{
char *mn;
char *opcode1;
char *opcode2;
char *opcode;
struct opcodeTable pNext;
}opTable;
typedef struct mnemonic{
char mnemonicName;
int value;
struct mnemonic *next
}mnemonicNode;
typedef struct registers{
char *regName;
struct registers *next;
}registerNode;
int oP_Tab_main(opTable **pHead);
int optable(opTable **ppHead,char *opcode,char *instr,char *op1,char *op2);