project1 - syscall li$v0, 1 lw$a0, B syscall li$v0, 4...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 .data A:.word23 B:.word7 Comp:.word-1 Sum:.word0 BLessA:.word0 ALessB:.word0 CompA:.word0 Space:.asciiz"" .text #Perform the math lw$t0, A lw$t1, B lw$t2, Comp mult$t2, $t0 mflo$t2 sw$t2, CompA add $t3, $t0, $t1 sw $t3, Sum subu$t4, $t0, $t1 sw $t4, BLessA subu$t5, $t1, $t0 sw$t5, ALessB #Print the problems li$v0, 1 lw$a0, A syscall li$v0, 4 la$a0, Space
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: syscall li$v0, 1 lw$a0, B syscall li$v0, 4 la$a0, Space syscall li$v0, 1 lw$a0, CompA syscall li$v0, 4 la$a0, Space syscall li$v0, 1 lw$a0, Sum syscall li$v0, 4 la$a0, Space syscall li$v0, 1 Sheet1 Page 2 lw$a0, BLessA syscall li$v0, 4 la$a0, Space syscall li$v0, 1 lw$a0, ALessB syscall # 237-233016-16...
View Full Document

Page1 / 2

project1 - syscall li$v0, 1 lw$a0, B syscall li$v0, 4...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online