Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修正:pc处理逻辑;新增:跳转指令(if_cmple, goto)+iload_n指令 #9

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

huangwei2013
Copy link

#修正pc处理逻辑
不兼容原处理模式
#新增指令
##跳转指令
if_cmple, goto
##加载指令
iload_n

#sample代码(1~3)

2.opcode/OpcodeRout.java
  - 增加 lload_0 ~ lload_3 的实现
  - AALOAD 的处理,加上安全判断处理(否则,运行sample2会在这报错)
3.Slots* 增加提示
2.opcode/OpcodeRout.java:增加 arraylength 实现
2.opcode/OpcodeRout.java:增加跳转opcode实现-if_cmple、goto,但还有问题
3.增加samples代码
README.md Outdated
@@ -2,31 +2,90 @@

这是一个Java实现的JAVA虚拟机,它会非常简单,实际上简单的只够运行HelloWorld。虽然简单,但尽量符合 JVM 标准,目前主要参考依据是[《Java虚拟机规范 (Java SE 7 中文版)》](http://www.iteye.com/topic/1117824)。

关于此项目的说明,[详见此文](http://www.jianshu.com/p/4d81465c2fb8)。
非原创,原项目来自 https://github.com/caoym/jjvm ,
Copy link
Collaborator

@caoym caoym Jun 19, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

此处说明可以删除,否则合入后会比较奇怪

另外后面的参考资料,建议不要放到readme内,因为本项目创建过程中并没有参考这两个项目。建议在修改pc实现处可以注明参考资料。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants