microregop.cc (4713:c208cec7b5b3) microregop.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 *

--- 159 unchanged lines hidden (view full) ---

168 }
169
170 std::string RegOp::generateDisassembly(Addr pc,
171 const SymbolTable *symtab) const
172 {
173 std::stringstream response;
174
175 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 *

--- 159 unchanged lines hidden (view full) ---

168 }
169
170 std::string RegOp::generateDisassembly(Addr pc,
171 const SymbolTable *symtab) const
172 {
173 std::stringstream response;
174
175 printMnemonic(response, instMnem, mnemonic);
176 printReg(response, dest, dataSize);
176 printDestReg(response, 0, dataSize);
177 response << ", ";
177 response << ", ";
178 printReg(response, src1, dataSize);
178 printSrcReg(response, 0, dataSize);
179 response << ", ";
179 response << ", ";
180 printReg(response, src2, dataSize);
180 printSrcReg(response, 1, dataSize);
181 return response.str();
182 }
183
184 std::string RegOpImm::generateDisassembly(Addr pc,
185 const SymbolTable *symtab) const
186 {
187 std::stringstream response;
188
189 printMnemonic(response, instMnem, mnemonic);
181 return response.str();
182 }
183
184 std::string RegOpImm::generateDisassembly(Addr pc,
185 const SymbolTable *symtab) const
186 {
187 std::stringstream response;
188
189 printMnemonic(response, instMnem, mnemonic);
190 printReg(response, dest, dataSize);
190 printDestReg(response, 0, dataSize);
191 response << ", ";
191 response << ", ";
192 printReg(response, src1, dataSize);
192 printSrcReg(response, 0, dataSize);
193 ccprintf(response, ", %#x", imm8);
194 return response.str();
195 }
196}
193 ccprintf(response, ", %#x", imm8);
194 return response.str();
195 }
196}