cleanup regress/sparc*.py

This commit is contained in:
Nguyen Anh Quynh
2015-09-16 15:46:10 +07:00
parent 893e6abcbd
commit f36bd83f85
2 changed files with 143 additions and 143 deletions

View File

@ -7,13 +7,13 @@ PAGE_SIZE = 1 * 1024 * 1024
uc = Uc(UC_ARCH_SPARC, UC_MODE_64)
uc.reg_write(UC_SPARC_REG_SP, 100)
print 'writing sp = 100, %%i0 = 2000'
print 'writing sp = 100'
# 0: b0 06 20 01 inc %i0
# 4: b2 06 60 01 inc %i1
# 0: b0 06 20 01 inc %i0
# 4: b2 06 60 01 inc %i1
CODE = "\xb0\x06\x20\x01" \
"\xb2\x06\x60\x01"
"\xb2\x06\x60\x01"
uc.mem_map(0, PAGE_SIZE)
uc.mem_write(0, CODE)