Assembler/header/common.h

52 lines
1 KiB
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
// Size of the label_table
#define LABEL_TABLE_SIZE 100000
// Maximum size (charachters) of one token
#define MAX_TOKEN_SIZE 10
// Intitial size and grow size for dynamic buffers
#define TABLE_INIT_SIZE 50
#define TABLE_GROW_SIZE 30
#define TARGET_CODE_INIT 50
#define TARGET_CODE_GROW 30
#define VER_MAJOR "0"
#define VER_MINOR "2"
#define VER_PATCH "1"
// alpha, beta or stable
#define TAG "beta"
#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
// const char *argp_program_bug_address = "eipabugs@outlook.com";
#define EIPA_BUG_ADRESS "eipabugs@outlook.com"
#endif