-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsecond_pass.h
27 lines (24 loc) · 858 Bytes
/
second_pass.h
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
/* Second pass line processing related functions */
#ifndef _SECOND_PASS_H
#define _SECOND_PASS_H
#include "globals.h"
#include "table.h"
/**
* Processes a single source line in the second pass
* @param line The source line
* @param ic A pointer to the current instruction counter
* @param code_img The code image
* @param symbol_table The symbol table
* @return Whether succeeded
*/
bool process_line_spass(line_info line, long *ic, machine_word **code_img, table *symbol_table);
/**
* Adds the symbol-dependent data words by the code line.
* @param line The source code line
* @param ic A pointer to the current instruction counter
* @param code_img The code image
* @param symbol_table The symbol table
* @return Whether succeeded
*/
bool add_symbols_to_code(line_info line, long *ic, machine_word **code_img, table *symbol_table);
#endif