;The semicolon is used to lead an inline documentation
;When you write your program, you could have your info at the top document block
;For Example: Your Name, Student Number, what the program is for, and what it does 

;
; See if you can figure out what this program does
;
;;; Directives
	PRESERVE8
	THUMB 
; Vector Table Mapped to Address 0 at Reset
; Linker requires __Vectors to be exported
	AREA RESET, DATA, READONLY
	EXPORT __Vectors
__Vectors 
	DCD 0x20001000 ; stack pointer value when stack is empty
	DCD Reset_Handler ; reset vector
 
	ALIGN
 
;Your Data section
;AREA DATA
; AREA MYRAM, DATA, READWRITE

	
string1
	DCB "ARM assembly language is important to learn!",0
vawels
	DCB "aeiouAEIOU",0
; The program
; Linker requires Reset_Handler
	AREA MYCODE, CODE, READONLY
	 ENTRY
	 EXPORT Reset_Handler
Reset_Handler
;;;;;;;;;;User Code Start from the next line;;;;;;;;;;;;
 
	LDR R1, =string1
	mov R0, #0
	mov R11, #0 ; not vawel
	mov R12, #0 ; vawel
loop2	
	ldrb R2, [R1]
	cmp R2, R0
	BEQ STOP
loop1	
	LDR R9, =vawels 
loop11	
	ldrb R10, [R9]
	cmp R10,#0
	beq loopnv
	cmp R10, R2 ; check vawel
	BEQ vawl
	add R9, R9, #1
	B  loop11
loopnv	
	add R11, R11, #1
	 add R1,R1,#1
	B loop2
 
vawl
	add R12, R12, #1
	add r1,r1,#1
	B loop2
	
	
	
 

STOP
	B STOP
	END 