mirror of
https://github.com/yuzu-mirror/unicorn.git
synced 2026-04-06 06:53:49 +00:00
Update java bindings for new version of uc_mem_map
This commit is contained in:
parent
85ad7725da
commit
1d6bd17a13
12 changed files with 55 additions and 42 deletions
2
bindings/java/samples/Sample_sparc.java
Normal file → Executable file
2
bindings/java/samples/Sample_sparc.java
Normal file → Executable file
|
|
@ -79,7 +79,7 @@ public class Sample_sparc {
|
|||
Unicorn u = new Unicorn(Unicorn.UC_ARCH_SPARC, Unicorn.UC_MODE_BIG_ENDIAN);
|
||||
|
||||
// map 2MB memory for this emulation
|
||||
u.mem_map(ADDRESS, 2 * 1024 * 1024);
|
||||
u.mem_map(ADDRESS, 2 * 1024 * 1024, Unicorn.UC_PROT_READ | Unicorn.UC_PROT_WRITE);
|
||||
|
||||
// write machine code to be emulated to memory
|
||||
u.mem_write(ADDRESS, SPARC_CODE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue