Projet-Systemes-Informatiques/asmTable.c
Raphaël LACROIX c71e340389 NOT REAL PUSH
2023-04-18 16:13:40 +02:00

32 lines
596 B
C

#include "asmTable.h"
int labelCounter = 0;
/*At the start of the execution : the whole array is empty*/
static char** table;
static int lineCounter = 0;
static int maxIndex = START_TABLE_SIZE;
#include "asmTable.h"
/* /!\ To be called at the beginning
* Initializes the array of Symbols*/
void initASMTable(){
table = malloc(sizeof(Symbol) * START_TABLE_SIZE);
}
/*resets the symbol table*/
void resetASMTable(){
currentIndex = 0;
maxIndex = START_TABLE_SIZE;
// stack pointers
esp = 0;
ebp = 0;
currentDepth = 0;
}
// todo inserer parser détecter les labels