-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain_dev.py
51 lines (36 loc) · 1.68 KB
/
main_dev.py
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
39
40
41
42
43
44
45
46
47
48
49
50
51
from computer import *
c = Computer( 65535 )
# programPath = 'Programs/sample_code.asm'
# programPath = 'Programs/sample_code_3.asm'
# programPath = 'Programs/sample_code_5.asm'
# programPath = 'Programs/sample_code_6.asm'
# programPath = 'Programs/sample_code_7a.asm'
# programPath = 'Programs/sample_code_7a.bin'
# programPath = 'Programs/smallest_number.asm'
# programPath = 'Programs/cpudiag_mod.asm'
# programPath = 'Programs/8080exerciser.asm'
programPath = 'Programs/tinybasic-2.0-mod.asm'
# programPath = 'Programs/tinybasic-2.0-mod.bin'
# programPath = 'Programs/tempTestComp.asm'
# programPath = '../cpm22_8080.asm'
c.loadProgram( programPath )
# c.loadProgram( programPath, isAssembly=False )
dumpFolderPath = '../../../tmp/'
c.dumpFolderPath = dumpFolderPath
# c.dumpMemory()
# c.terminal.debugMode = True
c.breakpoint = None # manual stepping
# c.breakpoint = 391 # auto step until reach breakpoint, then switches to manual stepping
# c.breakpoint = 1e9 # infinity to allow auto stepping until reach HLT, then switches to manual stepping
# textSourcePath = 'Programs/tinybasic/needMoreSupport/TicTacToeTB.basic'
# textSourcePath = 'Programs/tinybasic/needMoreSupport/LifeTB.basic'
# textSourcePath = 'Programs/tinybasic/needMoreSupport/TinyAdventureTB.basic'
# textSourcePath = 'Programs/tinybasic/gcta.basic'
textSourcePath = 'Programs/tinybasic/helloTB.basic'
# textSourcePath = 'Programs/tinybasic/EuphoriaTB_mod.basic'
# textSourcePath = 'Programs/tinybasic/EuphoriaTB.basic'
# textSourcePath = 'Programs/tinybasic/tests/testPrint.basic'
# textSourcePath = 'Programs/tinybasic/wip/tictactoeTB.basic'
# c.terminal.tooLazyToType( textSourcePath )
# c.run()
c.run( step=True ) # debug mode