cardiograph-computer/machine.config.js

25 lines
679 B
JavaScript

module.exports = {
"INITIAL_IP_ADDRESS": 29,
// Use these in CPU:
"DISPLAY_ADDR": 0,
"KEYPAD_ADDR": 27,
// Store the `DISPLAY_ADDR` at this address when assembling:
"POINTER_TO_DISPLAY": 26,
"KEY_MAP": {
// Same layout as COSMAC VIP / CHIP-8
// (This object maps qwerty keys to hex keys
// so that they are arranged in the same layout
// as the real keypad)
'1':'1', '2':'2', '3':'3', '4':'C',
'Q':'4', 'W':'5', 'E':'6', 'R':'D',
'A':'7', 'S':'8', 'D':'9', 'F':'E',
'Z':'A', 'X':'0', 'C':'B', 'V':'F',
},
// max number of times to step the CPU,
// to stop endless loops
// 0 = infinite
"CYCLE_LIMIT": 256,
}