iced icon indicating copy to clipboard operation
iced copied to clipboard

API to get register / mnemonic name

Open riptl opened this issue 1 year ago • 1 comments

It'd be nice to have a fn name() -> &'static str API to convert Register::RAX into "rax".

The Debug trait works too, but is less efficient (calling format!() requires a memory alloc)

riptl avatar May 09 '24 05:05 riptl

Would also be useful for Python, otherwise need to build your own lookup table from library constants

pbeart avatar Jan 02 '25 14:01 pbeart