-
Notifications
You must be signed in to change notification settings - Fork 0
/
todo.txt
48 lines (39 loc) · 1.22 KB
/
todo.txt
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
{
Johnny
* split line by spaces, commas, and ':'
* binary to base32
Nehara
* function saved word check
* check if str found in symbol table
* add to symbol table
1. chech for label validity
- start with an alphabetic letter
- contains only alphanumerical letters
- has ':' after
- is defined once
- not a saved word
* REMAINDER malloc param array with sizeof (char *)
* REMAINDER all the images/table/variables will be global
}
tranfer macro to preassembler ( or rename )
Johnny:
{
add ':' to label in line_parser - DONE
add error flag - DONE
throw error
line_type getLineType(Line) + validate - DONE
label_type getInstType(Line) + validate
opcode getCmdType(Line) + validate
address_type getAddType(Line) + validate
bool validDataInstruction(); // .data .string. struct
bool validExtEntInstruction(); // .extern .entry
bool validCodeInstruction(); // .code
}
Nehara:
{
LINE -> Line_parser -> validate -> if Label exists adds to corresponding images/tables without code image
is there .data without label?
calls add_label + add .data .string .struct instructions to data image
transfer macro utils to macro_parser.c
add init function, specificly symbol_table, and for each image
}