Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .data
- a: .word 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
- b: .word 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
- c: .word 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
- .text
- la x1, a
- la x2, b
- la x3, c
- addi x4, x0, 0
- li x10, 10
- loop:
- lw x6, 0(x1)
- lw x7, 0(x2)
- mul x8, x6, x7
- lw x9, -4(x3)
- add x8, x8, x9
- sw x8, 0(x3)
- addi x4, x4, 1
- addi x1, x1, 4
- addi x2, x2, 4
- addi x3, x3, 4
- bne x4, x10, loop
- exit:
- nop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement