【发布时间】:2014-02-08 20:07:55
【问题描述】:
我现在正在学习 MIPS 汇编,我想弄清楚如何将值存储到某个特定的 RAM 地址中,
这就是我现在拥有的:
.global main
.text
.set noreorder
.ent main
main:
lw $a0, 0x500
sw $t0, 0($a0) #set up contiguous memory
lui $t0, 0x1122
ori $t0, $t0, 0x3344
lui $t1, 0x2233
ori $t1, $t1, 0x4455
lui $t2, 0x3344
ori $t2 , $t2 , 0x5566
lui $t3, 0x4455
ori $t3 , $t3 , 0x6677
lui $t4, 0x5566
ori $t4 , $t4 , 0x7788
lui $t5, 0x6677
ori $t5 , $t5 , 0x8899
lui $t6, 0x7788
ori $t6 , $t6 , 0x99AA
lui $t7, 0x8899
ori $t7 , $t7 , 0xAABB
lui $t8, 0x99AA
ori $t8 , $t8 , 0xBBCC
lui $t9, 0xAABB
ori $t9 , $t9 , 0xCCDD
nop
loop:
nop
b loop
nop
.end main
我想要设置它,以便我制作的值(0x1122 ... 等)可以存储到连续的 RAM 位置。 我现在的代码总是给我这个奇怪的错误?
CORE-E0003:总线异常。未实现的 RAM 内存访问,来自 0x9d0000d8 处的指令
我使用的是 MPLAB 8.92
【问题讨论】: