Comments (7)
What if you try to assemble directly from the Python interpreter?
from cemu.
Works fine from Python3 (at least for the test example) as well as the cemu embedded interpreter:
from keystone import *
# separate assembly instructions by ; or \n
CODE = b"mov rdi, 2"
try:
# Initialize engine in X86-64bit mode
ks = Ks(KS_ARCH_X86, KS_MODE_64)
encoding, count = ks.asm(CODE)
print("%s = %s (number of statements: %u)" %(CODE, encoding, count))
except KsError as e:
print("ERROR: %s" %e)
emits b'mov rdi, 2' = [72, 199, 199, 2, 0, 0, 0] (number of statements: 1)
which looks right.
from cemu.
Are you using the latest from master
or the PIP version? On master
, your error message should look like
[logger] Error - Failed to compile: error at line 1
from cemu.
PIP version.
from cemu.
Can you upgrade to the master
?
from cemu.
That appears to have fixed it, thanks!
from cemu.
Glad to know. I will release the current master
as 0.2.2 very soon.
Cheers
from cemu.
Related Issues (20)
- Crash because newer keystone.asm does not have `as_bytes` arg HOT 4
- Cemu not display Registers with OSX Dark Mode HOT 3
- Aarch64: CBZ causes emulator exception HOT 2
- Cemu For 32Bit? HOT 1
- TypeError: sequence item 0: expected str instance, NoneType found HOT 2
- Cemu IS NOT WORKING WITH 32BIT WIN10!
- Cemu IS NOT WORKING! HOT 1
- Cannot run native ARM HOT 2
- Real Wiimote Controllers bug HOT 1
- cemu crash when pushing 32 bit regs in a 64 bit context HOT 3
- Possibility to load core dumps
- Load minidump (and coredump) files
- Dump memory from specific address into a file
- Better docs HOT 2
- Add RISCV32/64 Support HOT 2
- Display issues HOT 1
- Separate backend + UI
- Add support for breakpoints
- Basic web interface
- `cemu` fails to access `context` HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cemu.