2023-02-13 10:28:28 +01:00
|
|
|
/*
|
|
|
|
This code is part of the EIPA Platform
|
|
|
|
|
|
|
|
Here, common macros are specified
|
|
|
|
*/
|
|
|
|
|
2023-01-12 00:12:12 +01:00
|
|
|
#ifndef _COMMON_H_
|
|
|
|
#define _COMMON_H_
|
|
|
|
|
2023-02-13 10:28:28 +01:00
|
|
|
// Maximum Memory Adresses
|
|
|
|
#define MAX_MEMORY 268435456
|
2023-02-25 19:41:58 +01:00
|
|
|
|
2023-08-17 21:43:38 +02:00
|
|
|
// Size of the label_table
|
2023-09-19 22:32:26 +02:00
|
|
|
#define LABEL_TABLE_SIZE 100000
|
2023-08-17 21:43:38 +02:00
|
|
|
|
2023-02-13 10:28:28 +01:00
|
|
|
// Maximum size (charachters) of one token
|
2023-01-12 00:12:12 +01:00
|
|
|
#define MAX_TOKEN_SIZE 10
|
|
|
|
|
2023-09-19 22:32:26 +02:00
|
|
|
// 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
|
|
|
|
|
2023-02-04 18:53:08 +01:00
|
|
|
#define VER_MAJOR "0"
|
2023-09-22 00:11:32 +02:00
|
|
|
#define VER_MINOR "2"
|
2023-09-25 18:43:53 +02:00
|
|
|
#define VER_PATCH "1"
|
2023-02-25 19:41:58 +01:00
|
|
|
|
2023-02-13 10:28:28 +01:00
|
|
|
// alpha, beta or stable
|
2023-09-22 00:11:32 +02:00
|
|
|
#define TAG "beta"
|
2023-01-12 00:12:12 +01:00
|
|
|
|
|
|
|
#define ASCII_TAB 9
|
|
|
|
#define ASCII_SPACE 32
|
|
|
|
#define ASCII_NEWLINE 10
|
2023-09-30 16:51:10 +02:00
|
|
|
#define ASCII_CARRIAGE_RETURN 13
|
2023-01-12 00:12:12 +01:00
|
|
|
|
2023-02-13 10:28:28 +01:00
|
|
|
#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
|
|
|
|
|
2023-02-25 19:41:58 +01:00
|
|
|
// const char *argp_program_bug_address = "eipabugs@outlook.com";
|
|
|
|
#define EIPA_BUG_ADRESS "eipabugs@outlook.com"
|
|
|
|
|
2023-02-04 18:53:08 +01:00
|
|
|
#endif
|