13 lines
		
	
	
	
		
			177 B
		
	
	
	
		
			ArmAsm
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			177 B
		
	
	
	
		
			ArmAsm
		
	
	
	
	
	
.sect .text; .sect .rom; .sect .data; .sect .bss
 | 
						|
.define __brk
 | 
						|
.sect .text
 | 
						|
__brk:
 | 
						|
	mov	ax,17
 | 
						|
	callf	0x7:0x0
 | 
						|
	jb	1f
 | 
						|
	mov	ax,4(sp)
 | 
						|
	mov	(.limhp),ax
 | 
						|
	xor	ax,ax
 | 
						|
	ret
 | 
						|
1:
 | 
						|
	jmp	cerror
 |