-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathasm.h
40 lines (31 loc) · 1 KB
/
asm.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
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* asm.h
*
* Created on: May 12, 2017
* Author: user
*/
#ifndef MAIN_H_
#define MAIN_H_
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#define ERR_MSG_OPEN_FILE "Error While Opening File: "
#define MEM_SIZE (1 << 16)
#define LINE_SIZE (500)
#define BIT_SIZE (1 << 4)
//void removespaces(char* source);
//void clean_and_convert_to_lowercase(char *word);
////node* create_node(char *label, int address);
////void insert_to_label_list(node *new_node);
////void init_mem_array(FILE* file);
//void create_label_list (FILE* asm_file);
//int search_label_list(char *imm);
//char* process_first_word (char *operation);
//char* process_registers (char *reg);
//int convert_to_decimal(char *word);
//char *process_imm (char *imm);
//void process_dot_word(char *address, char *data, FILE *file);
//void process_single_asm_line_to_file(char *asm_line, int line_number);
//void go_over_asm_program(FILE *filein, FILE *fileout);
#endif /* MAIN_H_ */