microldstop.cc (4693:ca44a1014212) | microldstop.cc (4804:4a707cb7065b) |
---|---|
1/* 2 * Copyright (c) 2007 The Hewlett-Packard Development Company 3 * All rights reserved. 4 * 5 * Redistribution and use of this software in source and binary forms, 6 * with or without modification, are permitted provided that the 7 * following conditions are met: 8 * --- 52 unchanged lines hidden (view full) --- 61namespace X86ISA 62{ 63 std::string LdStOp::generateDisassembly(Addr pc, 64 const SymbolTable *symtab) const 65 { 66 std::stringstream response; 67 68 printMnemonic(response, instMnem, mnemonic); | 1/* 2 * Copyright (c) 2007 The Hewlett-Packard Development Company 3 * All rights reserved. 4 * 5 * Redistribution and use of this software in source and binary forms, 6 * with or without modification, are permitted provided that the 7 * following conditions are met: 8 * --- 52 unchanged lines hidden (view full) --- 61namespace X86ISA 62{ 63 std::string LdStOp::generateDisassembly(Addr pc, 64 const SymbolTable *symtab) const 65 { 66 std::stringstream response; 67 68 printMnemonic(response, instMnem, mnemonic); |
69 printReg(response, data, dataSize); | 69 printDestReg(response, 0, dataSize); |
70 response << ", "; 71 printSegment(response, segment); 72 ccprintf(response, ":[%d*", scale); | 70 response << ", "; 71 printSegment(response, segment); 72 ccprintf(response, ":[%d*", scale); |
73 printReg(response, index, addressSize); | 73 printSrcReg(response, 0, addressSize); |
74 response << " + "; | 74 response << " + "; |
75 printReg(response, base, addressSize); | 75 printSrcReg(response, 1, addressSize); |
76 ccprintf(response, " + %#x]", disp); 77 return response.str(); 78 } 79} | 76 ccprintf(response, " + %#x]", disp); 77 return response.str(); 78 } 79} |