CS计算机代考程序代写 .pos 0x100

.pos 0x100
ld $4, r0 # r0 = 4
ld $a, r1 # r1 = address of a
st r0, (r1) # a = 4
ld (r1), r2 # r2 = value of a
ld $b, r3 # r3 = address of b
st r2, (r3, r2, 4) # b[a] = a
halt # halt
.pos 0x1000
a: .long 0x0 # a
.pos 0x2000
b: .long 0xffffffff # b[0]
.long 0xffffffff # b[1]
.long 0xffffffff # b[2]
.long 0xffffffff # b[3]
.long 0xffffffff # b[4]
.long 0xffffffff # b[5]
.long 0xffffffff # b[6]
.long 0xffffffff # b[7]
.long 0xffffffff # b[8]
.long 0xffffffff # b[9]