				
string			dcb		'h','e','l','l','o', ' ', 'w', 'o','r','l','d', 0x0
				
				;		R0 = counter
				;		R1 = ptr
				;		R2 = i-th character
				
				mov		r1,#string
				mov		r0,#0
				
strlen_loop
				ldrb		r2,[r1]
				cmp		r2,#0
				beq		end_strlen_loop
				add		r1,r1,#1
				add		r0,r0,#1
				b		strlen_loop
				
end_strlen_loop
				end
				
