Skip to content

Commit 55a285f

Browse files
committed
Make Key{board,press}Tracer handle '{m[]}' with a hexadecimal address
1 parent 3867347 commit 55a285f

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

skoolkit/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
except ImportError: # pragma: no cover
3333
CCMIOSimulator = None
3434

35-
VERSION = '9.6rc2'
35+
VERSION = '9.6rc3'
3636
PACKAGE_DIR = os.path.dirname(__file__)
3737

3838
BASE_10 = 10

skoolkit/loadtracer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from skoolkit.pagingtracer import PagingTracer
2323
from skoolkit.simulator import R1
2424
from skoolkit.simutils import A, D, E, F, H, IXh, IXl, SP, PC, T, IFF
25-
from skoolkit.traceutils import Registers, disassemble, get_trace_line
25+
from skoolkit.traceutils import Registers, disassemble
2626

2727
DEC = tuple(tuple((
2828
v % 256,
@@ -244,7 +244,7 @@ def run(self, border, out7ffd, outfffd, ay, outfe):
244244
registers = simulator.registers
245245
tracefile = self.tracefile
246246
if tracefile:
247-
trace_line = get_trace_line(self.trace_line)
247+
trace_line = self.trace_line
248248
prefix = self.prefix
249249
byte_fmt = self.byte_fmt
250250
word_fmt = self.word_fmt

skoolkit/tap2sna.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
from skoolkit.snapshot import (move, patch, poke, print_reg_help,
3838
print_state_help, write_snapshot)
3939
from skoolkit.tape import parse_pzx, parse_tap, parse_tzx
40+
from skoolkit.traceutils import get_trace_line
4041

4142
SUPPORTED_TAPES = ('.pzx', '.tap', '.tzx')
4243

@@ -503,7 +504,7 @@ def sim_load(blocks, options, config):
503504

504505
if options.trace:
505506
tracefile = open_file(options.trace, 'w')
506-
trace_line = config['TraceLine'] + '\n'
507+
trace_line = get_trace_line(config['TraceLine'] + '\n')
507508
op_fmt = config['TraceOperand']
508509
prefix, byte_fmt, word_fmt = (op_fmt + ',' * (2 - op_fmt.count(','))).split(',')[:3]
509510
else:

sphinx/source/changelog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Changelog
22
=========
33

4-
9.6rc2
4+
9.6rc3
55
------
66
* :ref:`tap2sna.py` can now load from two tape files (e.g. when side 1 and side
77
2 of a tape are in separate files)

sphinx/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
# The short X.Y version.
4949
version = '9.6'
5050
# The full version, including alpha/beta/rc tags.
51-
release = '9.6rc2'
51+
release = '9.6rc3'
5252

5353
# The language for content autogenerated by Sphinx. Refer to documentation
5454
# for a list of supported languages.

tests/slow_test_sim_load.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,7 +1192,7 @@ def test_trace_with_load_command(self):
11921192
]
11931193
tapfile = self._write_tap(blocks)
11941194
tracefile = '{}/sim-load.trace'.format(self.make_directory())
1195-
trace_line = 'TraceLine={t:>8} ${pc:04X} {i:<15} {r[a]:02X} {m[23756]:02X}'
1195+
trace_line = 'TraceLine={t:>8} ${pc:04X} {i:<15} {r[a]:02X} {m[$5ccc]:02X}'
11961196
output, error = self.run_tap2sna(('-c', f'trace={tracefile}', '-c', 'load=LOAD ""', '-I', trace_line, tapfile, 'out.z80'))
11971197
out_lines = output.strip().split('\n')
11981198
exp_out_lines = [
@@ -1553,7 +1553,7 @@ def test_trace_with_option_press(self):
15531553
'--start', '1343',
15541554
'-c', 'finish-tape=1',
15551555
'-c', f'trace={tracefile}',
1556-
'-I', 'TraceLine={t:>8} ${pc:04X} {i:<15} {r[a]:02X} {m[23756]:02X}',
1556+
'-I', 'TraceLine={t:>8} ${pc:04X} {i:<15} {r[a]:02X} {m[0x5CCC]:02X}',
15571557
tapfile,
15581558
'out.z80'
15591559
)

0 commit comments

Comments
 (0)