Commit graph

6 commits

Author SHA1 Message Date
Florian Märkl
6af80b33a7
[RzIL] Coalesce nested seq when printing (#2262)
Change printing of
    (seq (...) (seq (...) (...)))
to just
    (seq (...) (...) (...))
2022-01-28 16:58:51 +01:00
Florian Märkl
5a2d80c728 [RzIL] Fix sbc V and unused status bit
Detected with rz-tracetest
2022-01-22 20:04:24 +01:00
Florian Märkl
5c4a9aac68 [RzIL] Fix 6502 asl and sbc 2022-01-22 09:40:20 +08:00
Florian Märkl
90e4e5cf16
[RzIL] Fix rti and stack behavior in 6502 IL
Detected with rz-tracetest
2022-01-21 09:22:34 +01:00
Florian Märkl
114667a34e [RzIL] Implement 6502 Lifting
This adds RzIL lifting for all legal 6502 ops, except the special bcd
modes of adc and sbc for now. The lifting of every one of these ops is
covered by an asm test, making sure all IL is valid. Some manual
execution tests are available too, including one that runs a simple
real-world xor-"decryption" loop.
The lifting has not been tested against traces yet, so minor mistakes in
the semantics are currently expected.
2022-01-16 03:21:49 +01:00
Florian Märkl
4f1e4ee6d5 Add asm tests for all legal 6502 ops
Ops with relative addressing now also only pad with 4 leading zeroes.
2022-01-14 00:47:33 +08:00