Commit Graph

28 Commits

Author SHA1 Message Date
Luke Street 4d8e473331 Support branch prediction bits, more bd mnemonics, more rlwinm mnemonics 2022-10-10 17:53:24 -04:00
Luke Street 20abce13e4 SPR names & mfspr/mtspr simplified mnemonics 2022-10-09 22:57:13 -04:00
Luke Street ca92a30920 Improve CRBit display 2022-10-09 21:41:34 -04:00
Luke Street 94c87b0912 Ignore bcctr, bclr in branch_offset 2022-09-27 17:50:59 -04:00
Richard Patel 65a68166b6 cargo fmt 2022-06-09 07:30:08 +02:00
InusualZ 9fd7546916 disasm: improve branch ins helpers
`branch_dest`: Support absolute destinations
`is_branch`: Use `matches!` to improve readability
`is_direct_branch`: Added helper to better match direct branches

Co-authored-by: Richard Patel <me@terorie.dev>
2022-05-31 20:24:20 -04:00
Richard Patel a80372c1b6 disasm: branch helpers, fix split fields 2022-04-11 00:08:39 +02:00
Richard Patel 9dab42c364 disasm-py: add fields() method 2022-04-09 17:19:05 +02:00
Richard Patel 9d5b73c0dc fix condition register logical instructions 2022-04-09 15:33:40 +02:00
Richard Patel 70192c75a4 fix psq_st disasm 2022-04-09 02:09:44 +02:00
Richard Patel 4c5735e403 more flexible modifier handling 2022-04-07 05:33:38 +02:00
Richard Patel b8199e678c fix signed fields 2022-04-07 04:07:15 +02:00
Richard Patel 8a57bd9eb2 more tests 2022-04-07 02:36:49 +02:00
Richard Patel b6ad3f4f2c make clippy happy 2022-04-07 02:14:11 +02:00
Richard Patel 5207876164 temporarily disable broken crates 2022-04-07 01:29:45 +02:00
Richard Patel e9041072e9 support simplified mnemonic conditions 2022-04-07 01:17:31 +02:00
Richard Patel c8c1daaa64 progress mnemonics 2022-04-06 17:41:13 +02:00
Richard Patel 5431836376 switch from macro to ahead-of-time generated code 2022-04-06 15:13:55 +02:00
Richard Patel 171666e6fc progress 2022-04-06 14:07:57 +02:00
Richard Patel 40142dcd9b support mnemonic suffixes 2021-08-29 09:02:31 +02:00
Richard Patel f04c68578b re-implement formatting 2021-08-29 06:06:08 +02:00
Richard Patel 5833e81236 generate def/use information 2021-08-29 04:25:39 +02:00
Richard Patel d0409f599b cleanup, remove stale codegen defs 2021-08-25 03:37:02 +02:00
Richard Patel 7a6b4df8d4 big rewrite, everything half broken 2021-08-25 03:23:57 +02:00
Richard Patel e7a257ac64
Implement control-flow graph detection (#12)
Closes #9
Closes #10

* add flow graph crate
* update authors
* implement control flow graph analysis
* detect if program flow falls through the end of a block
* relax itertools version constraint
2021-08-20 13:09:04 -04:00
Richard Patel e55398cd01 Fix Doldecomp formatter 2021-08-17 01:21:26 +02:00
Richard Patel 66b8d92934 add Python module 2021-08-17 00:40:13 +02:00
Richard Patel ea6545f7e3 rename ./lib to ./disasm 2021-08-16 22:54:20 +02:00