-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhash.h
27 lines (23 loc) · 1.41 KB
/
hash.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
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
* Sogang University *
* Department of Computer Science and Engineering *
* *
* Subject name: System Programming *
* Project title: [3] SIC/XE Machine - Linking Loader *
* *
* Author: Inho Kim *
* Student ID: 20161577 *
* *
* File name: hash.h *
* File description: Header file for hash table related tasks. *
* *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
#define OPCODE_LEN 7
// HASH_ENTRY* hashTable[HASH_SIZE]; // hash table pointer array
void opCMD(INPUT_CMD); // COMMAND: opcode
void oplistCMD(); // COMMAND: opcodelist
void hashCreate(); // function to create hash table
void checkOperandCnt(void*);
void hashAddBucket(int, void*); // function to add bucket to hash table
int hashFunction(char*); // function that returns hash function