Skip to content

Instantly share code, notes, and snippets.

@agustingianni
Last active October 12, 2015 18:42
Show Gist options
  • Select an option

  • Save agustingianni/5e78cfc241469916405d to your computer and use it in GitHub Desktop.

Select an option

Save agustingianni/5e78cfc241469916405d to your computer and use it in GitHub Desktop.
bool ARMInterpreter::interpret_ldc_ldc2_immediate(ARMContext& ctx, const ARMInstruction& ins)
{
if (ConditionPassed()) {
EncodingSpecificOperations();
if (!Coproc_Accepted(cp, ThisInstr())) {
GenerateCoprocessorException();
}
else {
NullCheckIfThumbEE(n);
offset_addr = add ? (ctx.readRegularRegister(n) + imm32) : (ctx.readRegularRegister(n) - imm32);
address = index ? offset_addr : ctx.readRegularRegister(n);
do {
Coproc_SendLoadedWord(ctx.readMemory(address, 4), cp, ThisInstr());
} while (Coproc_DoneLoading(cp, ThisInstr()));
if (wback) {
ctx.writeRegularRegister(n, offset_addr);
}
}
}
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment