Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jiegec/la-inst

Examine and discover LoongArch instructions
https://github.com/jiegec/la-inst

Last synced: 2 months ago
JSON representation

Examine and discover LoongArch instructions

Awesome Lists containing this project

README

        

# la-inst

Examine the effects of LoongArch instructions and discover undocumented ones.

Usage:

```shell
# discover undocumented instructions
$ cargo run --bin fuzz
# examine the behavior of instruction
$ cargo run --bin examine 00008020
Inst: 0x00008020, rd = 0, rj = 1, rk = 0
Binutils: Ok(Some("x86inc.b $r1"))
Ptrace: Register changed
LBT 1: OLD=0x00007fffd2cd0c00 NEW=0x0000000000000000
LBT 4: OLD=0x0000000000000000 NEW=0x0000000000000080
```

## Acknowledgements

The method is inspired by [RensDofferhoff/iScanU](https://github.com/RensDofferhoff/iScanU).