From ad845a1dae58fcbc5ce01f3cc05de444a8898060 Mon Sep 17 00:00:00 2001 From: flobernd Date: Sat, 16 May 2015 05:06:52 +0200 Subject: [PATCH] Minor readme changes --- README.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 724620a..a8677ba 100644 --- a/README.md +++ b/README.md @@ -26,21 +26,19 @@ The following example program uses Zydis to disassemble a given memory buffer an #include #include "Zydis.hpp" -using namespace Zydis; - int _tmain(int argc, _TCHAR* argv[]) { uint8_t data[] = { 0x90, 0xE9, 0x00, 0x00, 0x00, 0x00, 0xC3 }; - MemoryInput input(&data[0], sizeof(data)); - InstructionInfo info; - InstructionDecoder decoder; - decoder.setDisassemblerMode(ZydisMode::M32BIT); + Zydis::MemoryInput input(&data[0], sizeof(data)); + Zydis::InstructionInfo info; + Zydis::InstructionDecoder decoder; + decoder.setDisassemblerMode(Zydis::ZydisMode::M32BIT); decoder.setDataSource(&input); decoder.setInstructionPointer(0); - IntelInstructionFormatter formatter; + Zydis::IntelInstructionFormatter formatter; while (decoder.decodeInstruction(info)) { std::cout << formatter.formatInstruction(info) << std::endl;