I12O10VI5O院(系)_________________专业_______________________班级___________姓名__________________学号_________________
U1FU1H????????密?????????封????????线??????????
2.编写汇编程序,建立数组x??1,2,3,4,5,6,7,8,9?,并从x中读数据到y,使得y??1,4,7?。 (至少需写出关键指令与伪指令步骤)
(正确写出程序关键步骤就给满分,其余情况酌量给分)
.title “ read_data.asm”
.mmregs
.bss x,9 .bss y,3 .data
table: .word
.text
start: STM STM STM RPTZ MVPD RPT MVDD
end: B .end
#3, AR0 #x, AR1 #x, AR2 A, #8
table, *AR2+ ; #2
*AR1+0, *AR2+ ; end establish vector x and then AR2 point to y
copy data from x to y
B卷 (第5页 共5页)
1,2,3,4,5,6,7,8,9