1/* 2 * Copyright (c) 2007 The Hewlett-Packard Development Company |
3 * Copyright (c) 2015 Advanced Micro Devices, Inc. |
4 * All rights reserved. 5 * 6 * The license below extends only to copyright in the software and shall 7 * not be construed as granting a license to any other intellectual 8 * property including but not limited to intellectual property relating 9 * to a hardware implementation of the functionality of the software 10 * licensed hereunder. You may use the software subject to the license 11 * terms below provided that you ensure that this notice is replicated --- 42 unchanged lines hidden (view full) --- 54 printDestReg(response, 0, dataSize); 55 else 56 printSrcReg(response, 2, dataSize); 57 response << ", "; 58 printMem(response, segment, scale, index, base, disp, 59 addressSize, false); 60 return response.str(); 61 } |
62 63 std::string LdStSplitOp::generateDisassembly(Addr pc, 64 const SymbolTable *symtab) const 65 { 66 std::stringstream response; 67 68 printMnemonic(response, instMnem, mnemonic); 69 int baseRegIdx = flags[IsLoad] ? 0 : 2; 70 response << "["; 71 printDestReg(response, baseRegIdx, dataSize); 72 response << ", "; 73 printDestReg(response, baseRegIdx+1, dataSize); 74 response << "], "; 75 printMem(response, segment, scale, index, base, disp, 76 addressSize, false); 77 return response.str(); 78 } |
79} |