The main function will now write out the output of the parser.
This commit is contained in:
@@ -32,8 +32,6 @@ int Expect(int, ...);
|
||||
int ExpectTokenClass(int, ...);
|
||||
const Symbol* GetSymbol(char*);
|
||||
List* SymbolsTable;
|
||||
void WriteMemory(unsigned char value, int location);
|
||||
void WriteMemoryORMask(unsigned char mask, int location);
|
||||
unsigned int HeapTop = 4;
|
||||
unsigned int ProgramCounter = 0;
|
||||
unsigned char Heap[HIGHMEMORY];
|
||||
@@ -481,22 +479,4 @@ int ParserAtEnd(void) {
|
||||
|
||||
Token* PeekToken(void) {
|
||||
return TokensList->content[CurrentToken];
|
||||
}
|
||||
|
||||
void WriteMemory(unsigned char value, int location) {
|
||||
if (location > HIGHMEMORY) {
|
||||
fprintf(stderr, "[Error] Exceeded memmory size\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
Memory[location] = value;
|
||||
}
|
||||
|
||||
void WriteMemoryORMask(unsigned char mask, int location) {
|
||||
if (location > HIGHMEMORY) {
|
||||
fprintf(stderr, "[Error] Exceeded memmory size\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
Memory[location] |= mask;
|
||||
}
|
||||
Reference in New Issue
Block a user