summaryrefslogtreecommitdiff
path: root/Libraries/LibX86
AgeCommit message (Collapse)Author
2020-05-14Build: Switch to CMake :^)Sergey Bugaev
Closes https://github.com/SerenityOS/serenity/issues/2080
2020-05-07LibX86: Rename build0FSlash() to build_0f_slash()Linus Groh
As spotted by @heavyk this was missed in 57b2b96.
2020-05-04LibX86: Simplify "register index to string" functions a bitAndreas Kling
2020-05-04LibX86: Remove accidental camelCase in some namesAndreas Kling
2020-04-30LibX86: Disassemble BSWAPAndreas Kling
2020-04-15LibX86: Use MakeUnsigned<T> from AK instead of making a custom oneAndreas Kling
2020-04-12LibX86: Add a way for Instruction::to_string() to symbolicate addressesAndreas Kling
This patch adds a pure virtual X86::SymbolProvider that can be passed to Instruction::to_string(). If the instruction contains what appears to be a program address, stringification will try to symbolicate that address via the SymbolProvider. This makes it possible (and very flexible) to add symbolication to clients of the disassembler. :^)
2020-04-11LibX86: Decode RDRAND instructionAndreas Kling
I was looking at Kernel::get_good_random_bytes() and wondering where the RDRAND instruction was. :^)
2020-04-11LibX86: Fix duplicate '+' in SIB byte disassemblyAndreas Kling
For SIB bytes with base but no index, we were emitting two '+' chars which looked very off.
2020-04-11LibX86: When there are multiple REPZ/REPNZ prefixes, the last one winsAndreas Kling
2020-04-11LibX86: Tolerate invalid segment register indices when disassemblingAndreas Kling
While #6 and #7 are not valid segment register, they can still be encoded in otherwise-valid instructions, so let's tolerate it.
2020-04-11LibX86: Disassemble unknown opcodes as "db %#02x"Andreas Kling
2020-04-11LibX86: Decode PADDB, PADDW and PADDDAndreas Kling
2020-04-11LibX86: Don't choke on invalid LOCK prefixes for nowAndreas Kling
This might be interesting information later, but I'm not sure how to encode it at the moment.
2020-04-11LibX86: Fix backwards arguments to ENTER imm16,imm8Andreas Kling
2020-04-11LibX86: Add 8-bit CMPXCHG and allow LOCK CMPXCHGAndreas Kling
2020-04-11LibX86: Support decoding basic MMX instructions like MOVQAndreas Kling
2020-04-11LibX86: Run the instruction decoder in 32-bit mode by defaultAndreas Kling
Let's assume a 32-bit execution environment unless otherwise specified.
2020-04-11LibX86: Remove some unnecessary stuff from Disassembler.hAndreas Kling
2020-04-11LibX86: Add an X86 instruction decoder library + basic disassemblerAndreas Kling
This will be very useful for developer tools like ProfileView, and also for future tools like debuggers and such. :^)