-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.jsonc
38 lines (33 loc) · 957 Bytes
/
config.jsonc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
"Cpu": {
// Duration of one cycle in ticks.
// Lower values will result in faster execution.
"CycleDuration": 300,
// Amount of instructions that should be executed per cycle.
// Higher values will result in faster execution, since the CPU doesn't have to fetch the registers from the heap every time.
"InstructionsPerCycle": 100
},
"Program": {
"Path": "program_machine_code",
"Size": "0xEF6E"
},
"Screen": {
// Note: changing the resolution will also resize the memory allocation of the screen and character device.
"Width": 108,
"Height": 108,
"Scale": 9
},
"Memory": {
// Max amount of memory in bytes.
"Size": "0xFFFF",
"Banks": 10,
// Mapping of device in memory.
"Devices": {
"Program": [0, "0x0000"],
"Character": [1, "0xD12A"],
"Keyboard": [1, "0xD0FC"],
"Mouse": [1, "0xD0FD"],
"Screen": [1, "0xD26E"],
}
}
}