Show your work for full credit.
*
).
Sign Magnitude | One's Complement | Two's Complement | Biased-127 |
10011010 | |||
01101011 | |||
10000000 | |||
10100010 |
.data
aaa: .word 1000
bbb: .word 0
ccc: .word 0
newline: .byte '\n'
str: .asciiz "The answer is "
.text
__start:
loop_top: beq bbb, aaa, loop_end
add bbb, bbb, 1
add ccc, ccc, bbb
b loop_top
loop_end: puts str
put ccc
put newline
done
sub z, x, y
add a, z, y
label address contents -------------------------- v1 15 20 v2 16 17 v3 17 -2 v4 18 -3Give this complete table, with any changes, after the following SAL code fragment is executed.
la v2, v4
mov v1, v4
48 65 6c 70 21 20 49 27 6d 20 74 72 61 70 70 65 64 20 69 6e 73 69 64 65 20 61 20 63 6f 6d 70 75 74 65 72 21
01100011 +10001101 -------- 10000111 -11001101 --------
11110011 +10011101 -------- 10000111 -11001101 --------
10100111 x 11101101 -------------
101011 / 0100
ls
the directory where your files for this assignment will be stored:
~cs354-1/handin/
username/HW2
HW2
is the name of the directory where you will submit this assignment.
The path information allows you to review your submissions.
hw2.txt
~cs354-1/handin/username
/HW1/.