mirror of
				https://github.com/yuzu-emu/unicorn.git
				synced 2025-11-04 13:05:03 +00:00 
			
		
		
		
	add regression test from issue #16
This commit is contained in:
		
							parent
							
								
									ee9e2d6a12
								
							
						
					
					
						commit
						220fa08a3a
					
				
							
								
								
									
										9
									
								
								regress/wrong_sp_arm.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								regress/wrong_sp_arm.py
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,9 @@
 | 
			
		|||
#!/usr/bin/python
 | 
			
		||||
# By Ryan Hileman, issue #16
 | 
			
		||||
 | 
			
		||||
from unicorn import *
 | 
			
		||||
from unicorn.arm_const import *
 | 
			
		||||
uc = Uc(UC_ARCH_ARM, UC_MODE_32)
 | 
			
		||||
uc.reg_write(ARM_REG_SP, 4)
 | 
			
		||||
print 'Writing 4 to SP'
 | 
			
		||||
print 'SP =', uc.reg_read(ARM_REG_SP)
 | 
			
		||||
		Loading…
	
		Reference in a new issue