mirror of
				https://github.com/deater/dos33fsprogs.git
				synced 2025-11-03 13:16:08 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			191 B
		
	
	
	
		
			ArmAsm
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			191 B
		
	
	
	
		
			ArmAsm
		
	
	
	
	
	
 | 
						|
	;======================
 | 
						|
	; memset
 | 
						|
	;======================
 | 
						|
	; a=value
 | 
						|
	; x=length
 | 
						|
	; MEMPTRL/MEMPTRH is address
 | 
						|
memset:
 | 
						|
	ldy	#0
 | 
						|
memset_loop:
 | 
						|
	sta	MEMPTRL,Y
 | 
						|
	iny
 | 
						|
	dex
 | 
						|
	bne	memset_loop
 | 
						|
	rts
 | 
						|
 |