Example: barber
Chapter 2 Instructions: Assembly Language
lw $0, 32($3) # load A[8] to $0 add $0, $0, $2 # add h and $0 sw $0, 48($3) # store the sum in A[12] In the rst instruction, we use 32 as the o set since one integer is represented by 4 bytes, i.e., 4 memory cells, so the 8th element of the array …
Download Chapter 2 Instructions: Assembly Language
15
Information
Domain:
Source:
Link to this page: