summaryrefslogtreecommitdiff
path: root/src/metadata.rs
diff options
context:
space:
mode:
authorBen Bridle <ben@derelict.engineering>2024-12-16 13:42:21 +1300
committerBen Bridle <ben@derelict.engineering>2024-12-16 13:43:13 +1300
commit07fb107e2d0527545bcdbb47ace80551702a71b1 (patch)
tree2ec8c12928e317a8946f6270a4e8659271056b4d /src/metadata.rs
parent583c961c0158fd44817695225e06d07caa18657e (diff)
downloadbedrock-pc-07fb107e2d0527545bcdbb47ace80551702a71b1.zip
Fix reported address of debug instruction in debug output
Because the program counter is incremented immediately after an instruction byte is loaded, the value of the program counter reported by a debug instruction was actually the address of the following byte. This made the SYM symbol name line in the debug output report the wrong symbol name in some situations. This was fixed by decrementing the value used.
Diffstat (limited to 'src/metadata.rs')
0 files changed, 0 insertions, 0 deletions