renamed m68k enum constants
This commit is contained in:
@ -37,7 +37,7 @@ def test_m68k():
|
||||
mu.mem_write(ADDRESS, M68K_CODE)
|
||||
|
||||
# initialize machine registers
|
||||
mu.reg_write(M68K_REG_D3, 0x1234)
|
||||
mu.reg_write(UC_M68K_REG_D3, 0x1234)
|
||||
|
||||
# tracing all basic blocks with customized callback
|
||||
mu.hook_add(UC_HOOK_BLOCK, hook_block)
|
||||
@ -51,7 +51,7 @@ def test_m68k():
|
||||
# now print out some registers
|
||||
print(">>> Emulation done. Below is the CPU context")
|
||||
|
||||
d3 = mu.reg_read(M68K_REG_D3)
|
||||
d3 = mu.reg_read(UC_M68K_REG_D3)
|
||||
print(">>> D3 = 0x%x" %d3)
|
||||
|
||||
except UcError as e:
|
||||
|
@ -2,23 +2,23 @@
|
||||
|
||||
# M68K registers
|
||||
|
||||
M68K_REG_INVALID = 0
|
||||
M68K_REG_A0 = 1
|
||||
M68K_REG_A1 = 2
|
||||
M68K_REG_A2 = 3
|
||||
M68K_REG_A3 = 4
|
||||
M68K_REG_A4 = 5
|
||||
M68K_REG_A5 = 6
|
||||
M68K_REG_A6 = 7
|
||||
M68K_REG_A7 = 8
|
||||
M68K_REG_D0 = 9
|
||||
M68K_REG_D1 = 10
|
||||
M68K_REG_D2 = 11
|
||||
M68K_REG_D3 = 12
|
||||
M68K_REG_D4 = 13
|
||||
M68K_REG_D5 = 14
|
||||
M68K_REG_D6 = 15
|
||||
M68K_REG_D7 = 16
|
||||
M68K_REG_SR = 17
|
||||
M68K_REG_PC = 18
|
||||
M68K_REG_ENDING = 19
|
||||
UC_M68K_REG_INVALID = 0
|
||||
UC_M68K_REG_A0 = 1
|
||||
UC_M68K_REG_A1 = 2
|
||||
UC_M68K_REG_A2 = 3
|
||||
UC_M68K_REG_A3 = 4
|
||||
UC_M68K_REG_A4 = 5
|
||||
UC_M68K_REG_A5 = 6
|
||||
UC_M68K_REG_A6 = 7
|
||||
UC_M68K_REG_A7 = 8
|
||||
UC_M68K_REG_D0 = 9
|
||||
UC_M68K_REG_D1 = 10
|
||||
UC_M68K_REG_D2 = 11
|
||||
UC_M68K_REG_D3 = 12
|
||||
UC_M68K_REG_D4 = 13
|
||||
UC_M68K_REG_D5 = 14
|
||||
UC_M68K_REG_D6 = 15
|
||||
UC_M68K_REG_D7 = 16
|
||||
UC_M68K_REG_SR = 17
|
||||
UC_M68K_REG_PC = 18
|
||||
UC_M68K_REG_ENDING = 19
|
||||
|
Reference in New Issue
Block a user