此问题已存在:
how do i modify the following mips code to such that element 82 will be contained in the array
3天前关闭。
下面是mips中的数组
网格:.byte
26, 25,22,22,12,22,22,22,22,22,10
25,22,22,22,42,22,22,22,22,25,10
25,22,22,22,22,22,22,22,22,25,10
25,22,22,22,22,22,22,22,22,25,10
25,22,24,24,80,42,24,24,24,24,24
24,32,32,32,32,32,32,43,34,34,34
23,32,21,23,13,32,34,23,42,32,32
25,23,23,23,23,23,23,23,23,23,23
我如何访问数组中元素80的位置,以便我可以将元素向上移动一列。假设数组的基址为0x0000000
1条答案
按热度按时间emeijp431#
下面是示例代码,演示了它的工作方式(使用常量偏移量):
输出:
您可以看到
80
已经从4向上移动了一行到3,并被32(空格)取代。