mem.cc (7205:e3dfcdf19561) | mem.cc (7279:157b02cc0ba1) |
---|---|
1/* 2 * Copyright (c) 2010 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 52 unchanged lines hidden (view full) --- 61 ss << "]"; 62 return ss.str(); 63} 64 65void 66Memory::printInst(std::ostream &os, AddrMode addrMode) const 67{ 68 printMnemonic(os); | 1/* 2 * Copyright (c) 2010 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 52 unchanged lines hidden (view full) --- 61 ss << "]"; 62 return ss.str(); 63} 64 65void 66Memory::printInst(std::ostream &os, AddrMode addrMode) const 67{ 68 printMnemonic(os); |
69 printReg(os, dest); | 69 printDest(os); |
70 os << ", ["; 71 printReg(os, base); 72 if (addrMode != AddrMd_PostIndex) { 73 os << ", "; 74 printOffset(os); 75 os << "]"; 76 if (addrMode == AddrMd_PreIndex) { 77 os << "!"; 78 } 79 } else { 80 os << "] "; 81 printOffset(os); 82 83 } 84} 85 86} | 70 os << ", ["; 71 printReg(os, base); 72 if (addrMode != AddrMd_PostIndex) { 73 os << ", "; 74 printOffset(os); 75 os << "]"; 76 if (addrMode == AddrMd_PreIndex) { 77 os << "!"; 78 } 79 } else { 80 os << "] "; 81 printOffset(os); 82 83 } 84} 85 86} |