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

Missing jvm instruction #157

Closed
nicolaichuk opened this issue Mar 3, 2017 · 3 comments
Closed

Missing jvm instruction #157

nicolaichuk opened this issue Mar 3, 2017 · 3 comments

Comments

@nicolaichuk
Copy link
Contributor

nicolaichuk commented Mar 3, 2017

I have this js after run dragome compiler:

ERROR("dex:rem-float-2addr");

and then error:

Uncaught ReferenceError: ERROR is not defined

Perhaps it is relate with this issue
https://sourceforge.net/p/xmlvm/mailman/message/27306854/

Opcode (hex): CA
Opcode name: rem-float/2addr vx,vy
Explanation: Calculates vx/vy and puts the result into vx. 

Example: CA10 - rem-float/2addr v0, v1
Calculates v0 % v1 and puts the result into v0. 

http://pallergabor.uw.hu/androidblog/dalvik_opcodes.html

@nicolaichuk nicolaichuk changed the title Missing instruction jvm instruction dex:rem-float-2addr Missing jvm instruction dex:rem-float-2addr Mar 3, 2017
nicolaichuk added a commit to nicolaichuk/dragome-sdk that referenced this issue Mar 3, 2017
@nicolaichuk
Copy link
Contributor Author

nicolaichuk commented Mar 3, 2017

Also dont support

ERROR("dex:shl-int-2addr");

ERROR("dex:shl-int");

ERROR("dex:ushr-long-2addr");

fix in 233e369

@nicolaichuk
Copy link
Contributor Author

nicolaichuk commented Mar 3, 2017

javascript work only with 32-bit value when used bitwise operation.

https://stackoverflow.com/questions/3081271/number-of-bits-to-represent-a-number

And used 53-bit value for other integer operation

https://stackoverflow.com/questions/17320706/javascript-long-integer

I do not sure about valid mirror operation with 64-bit long value between java and javascript code.
Maybe need write same wrapper over java native long value.

@nicolaichuk nicolaichuk changed the title Missing jvm instruction dex:rem-float-2addr Missing jvm instruction Mar 3, 2017
@nicolaichuk
Copy link
Contributor Author

Create issue #161

@fpetrola fpetrola modified the milestone: Better GDX suport Mar 6, 2017
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

No branches or pull requests

2 participants