Assembler/header/common.h
XOR 20f729d0fd The commit before this one also contained:
Refactoring
Adding error handling
Adding a clang format file
Updating gitignore
Updating TODO
2023-02-27 14:52:37 +01:00

45 lines
932 B
C
Executable file

/*
This code is part of the EIPA Platform
Here, common macros are specified
*/
#ifndef _COMMON_H_
#define _COMMON_H_
// Maximum Memory Adresses
#define MAX_MEMORY 268435456
// Maximum size (charachters) of one token
#define MAX_TOKEN_SIZE 10
#define VER_MAJOR "0"
#define VER_MINOR "1"
#define VER_PATCH "0"
// alpha, beta or stable
#define TAG "alpha"
#define ASCII_TAB 9
#define ASCII_SPACE 32
#define ASCII_NEWLINE 10
#define INSTR_INP 0b0001
#define INSTR_OUT 0b0010
#define INSTR_LDA 0b0011
#define INSTR_STA 0b0100
#define INSTR_INC 0b0101
#define INSTR_DEC 0b0110
#define INSTR_JPP 0b0111
#define INSTR_JPZ 0b1000
#define INSTR_JPN 0b1001
#define INSTR_JPU 0b1010
#define INSTR_EOJ 0b1011
// get the character which the next fgetc() call would return
#define PREFGETC(file) *file->_IO_read_ptr
// const char *argp_program_bug_address = "eipabugs@outlook.com";
#define EIPA_BUG_ADRESS "eipabugs@outlook.com"
#endif