Skip to content
Snippets Groups Projects
Commit d1a35cfe authored by iliya's avatar iliya
Browse files

improved last ex of lab2

parent 6c1e8fe7
No related branches found
No related tags found
No related merge requests found
......@@ -66,6 +66,29 @@ err:
.thumb_func
majuscule:
//index tableau
mov r1, #0
boucle_while:
ldrb r2, [r0, r1]
cmp r2, #0
beq exit
cmp r2, #97
blt next_iter
cmp r2, #122
bgt next_iter
sub r2, #32
strb r2, [r0, r1]
b next_iter
next_iter:
add r1, #1
b boucle_while
exit:
bx lr
/*majuscule:
//index while loop
mov r1, #0
......@@ -89,7 +112,7 @@ if_cond:
sub r2, #32
strb r2, [r0], #1
add r1, #1
b debut_while
b debut_while*/
//.weak add_sat
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment