-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path__config__.py
16 lines (13 loc) · 858 Bytes
/
__config__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
""" Memory Reference Instructions (MRI) """
MRI = {"AND": ["0", "8"], "ADD": ["1", "9"], "LDA": ["2", "A"], "STA": ["3", "B"],
"BUN": ["4", "C"], "BSA": ["5", "D"], "ISZ": ["6", "E"]}
""" Register Reference Instructions (Non-MRI) """
NON_MRI = {"CLA": 0x7800, "CLE": 0x7400, "CMA": 0x7200, "CME": 0x7100, "CIR": 0x7080, "CIL": 0x7040, "INC": 0x7020,
"SPA": 0x7010, "SNA": 0x7008, "SZA": 0x7004, "SZE": 0x7002, "HLT": 0x7001, "INP": 0xF800, "OUT": 0xF400,
"SKI": 0xF200, "SKO": 0xF100, "ION": 0xF080, "IOF": 0xF040}
PREUDOMSTRUCTION = ["ORG", "HEX", "DEC", "END"]
""" Mnemonics Which should come alone in one line of code """
ALONE_IN_LINE = ["CLA", "CLE", "CMA", "CME", "CIR",
"CIL", "INC", "SPA", "SNA", "SZA",
"SZE", "HLT", "INP", "OUT", "SKI",
"SKO", "ION", "IOF", "END"]