diff options
author | Santo Cariotti <santo@dcariotti.me> | 2021-02-06 19:56:36 +0100 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2021-02-06 19:56:36 +0100 |
commit | d2edbc38cac8da52f58c5cd3da6c0c625fa05736 (patch) | |
tree | a51e9a4e56fc9d4c7c9e37576dceedca3a0c72b4 /1_anno/Architettura_Elaboratori/subsequence_less_than_5.asm | |
parent | 98f34040820dc3a964b7be59a698323e8cc6c8a3 (diff) |
conf: rename
Diffstat (limited to '1_anno/Architettura_Elaboratori/subsequence_less_than_5.asm')
-rw-r--r-- | 1_anno/Architettura_Elaboratori/subsequence_less_than_5.asm | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/1_anno/Architettura_Elaboratori/subsequence_less_than_5.asm b/1_anno/Architettura_Elaboratori/subsequence_less_than_5.asm deleted file mode 100644 index 3c266d5..0000000 --- a/1_anno/Architettura_Elaboratori/subsequence_less_than_5.asm +++ /dev/null @@ -1,30 +0,0 @@ -arr_n dcd 6 -array dcd 3, 6, 7, 2, 9, 0 -s_arr dcd 1 - - mov r0, #arr_n - ldr r0, [r0] - mov r1, r0 - - mov r2, #s_arr - mov r1, #array - mov r4, #0 ; number of elements on new sequence - -loop - cmp r0, #0 - beq end_program - ldr r3, [r1], #4 - cmp r3, #5 ; number to compare - blt data_store -subn_loop - sub r0, r0, #1 - b loop - -data_store - str r3, [r2], #4 - add r4, r4, #1 - b subn_loop - -end_program - str r4, [r2] - end |