jsr 指令
来源:互联网 发布:淘宝号点数查询 编辑:程序博客网 时间:2024/06/10 16:44
execution of the following instruction. Return address (PC + 4) is saved in PR, and a branch is
made to the address indicated by general register Rn. JSR is used in combination with RTS for
subroutine procedure calls.
JSR @Rn PC+4 PR, Rn PC 0100nnnn00001011
DEFINE_OPCODE(op_jsr) {
/* jsr retAddrDst(r) target(offset)
Places the address of the next instruction into the retAddrDst
register and jumps to offset target from the current instruction.
*/
int retAddrDst = vPC[1].u.operand;
int target = vPC[2].u.operand;
callFrame->r(retAddrDst) = vPC + OPCODE_LENGTH(op_jsr);
vPC += target;
}
retAddrDst is the ret address, target is branch address.
void JIT::emit_op_jsr(Instruction* currentInstruction)
{
int retAddrDst = currentInstruction[1].u.operand;
int target = currentInstruction[2].u.operand;
DataLabelPtr storeLocation = storePtrWithPatch(ImmPtr(0), Address(callFrameRegister, sizeof(Register) * retAddrDst));
addJump(jump(), target);
m_jsrSites.append(JSRInfo(storeLocation, label()));
printf("[FELIXS][%s][%d] m_jsrSites.size():%d.\n", __FUNCTION__, __LINE__, m_jsrSites.size());
}
- jsr 指令
- JSR
- JSR
- JSR
- JSR
- JSR
- JSR
- NESASM教程——第十一天——JSR指令
- 什么是JSR
- JSR 规范
- JSR 286
- JSR简介
- jsr-175
- JSR规范
- JSR-166
- JSR-177
- JSR是什么
- JSR大全
- adblock plus fast filter matching
- Access 中的小细节
- GBK源码转UTF8
- android判断2g|3g网络
- 【Xcode】-[__NSArrayI addObjectsFromArray:]: unrecognized selector
- jsr 指令
- JVM crash # J org.apache.http.client.protocol.RequestAddCookies.process(Lorg/apache/http/HttpReques
- HDMI之InfoFrame
- redis笔记
- 基于linux的生产者-消费者
- cpuinfo
- 面试.NET资深程序员的前5分钟
- ammap使用破解
- 《C预处理》linux kernel中一种宏定义在函数实现中的用法