Skip to content

Commit f0c39b3

Browse files
committed
pymwemu emulation script for enigma
1 parent 8940a72 commit f0c39b3

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

scripts/emu.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import pymwemu
2+
3+
emu = pymwemu.init64()
4+
emu.load_maps('/Users/jesus/src/mwemu/maps64/')
5+
emu.load_binary('surprise.dll')
6+
7+
emu.set_verbose(0)
8+
emu.set_reg('rdx', 1)
9+
emu.spawn_console_at_pos(227871000)
10+
try:
11+
emu.run()
12+
except:
13+
emu.spawn_console()
14+
15+
emu.spawn_console()

scripts/enigma.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ cargo run --release \
3535
--r13 0x120136C63F0 \
3636
--r14 0x7FFBFA260000 \
3737
--r15 0x0 \
38-
--rflags 0x344
38+
--rflags 0x344

0 commit comments

Comments
 (0)