Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
325 B
0
Indexable
Never
.global _start
_start:
				mov r5,r0  /* r5 <- r0 (r5 <- 0) */
				mov r12,r0 /* r12 <- r0 (r12 <- 0) */
				movi r6,30 /* r6 <- 30 */

cummulative: 
				addi r5,r5,1 /* r5 <- r5 + 1  */
				add r12,r12,r5 /* r12 <- r12 + r5 */
				bltu r5,r6,cummulative /* loop back 30 times */

done: br done /* infinite loop */
Leave a Comment