-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzx_screen_proc.toml
89 lines (73 loc) · 1.81 KB
/
zx_screen_proc.toml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
[init]
bin_file = "examples/zs_screen_proc.bin"
load_addr = 0xC000
labels_file = "examples/zx_screen_proc.sld"
[[test]]
name = "Down HL. Calculate screen addr in HL, below current line"
# test preconditions
hl = 0x4000
[test.run]
fname = "down_hl"
max_ticks = 200
[test.expect.registers]
fl_c = false
hl = 0x4100
[[test.expect.memory]]
address = "xy2char"
value = 0x7a
[[test.expect.memory]]
address = "xy2char"
word = true
value = 0x0f7a
[[test.expect.memory]]
address = 0x0000
series = [0x00, 0x00, 0x00]
[test.expect.timing]
max_ticks = 100
[[test]]
name = "Down HL. Calculate screen addr in HL, below current line when on line 191"
# test preconditions
hl = 0x57e1
[test.run]
fname = "down_hl"
max_ticks = 200
[test.expect.registers]
fl_c = true
hl = 0x5801
[test.expect.timing]
max_ticks = 100
[[test]]
name = "Calculate screen addr with given char coordinates (0,0)"
d = 0
e = 0
[test.run]
fname = "xy2char"
[test.expect.registers]
de = 0x4000
[test.expect.timing]
max_ticks = 100
[[test]]
name = "Calculate screen addr with given char coordinates (23,31)"
d = 23
e = 31
[test.run]
fname = "xy2char"
[test.expect.registers]
de = 0x50ff
[[test]]
name = "Calculate screen addr with given X,Y coordinates (0,0)"
h = 0
l = 0
[test.run]
fname = "xy2screen"
[test.expect.registers]
de = 0x4000
[[test]]
name = "Calculate screen addr with given X,Y coordinates (191,255)"
h = 191
l = 255
[test.run]
fname = "xy2screen"
repeat = 10
[test.expect.registers]
de = 0x57FF