Discussion:
out of bounds memory access
(too old to reply)
Stephen Tu
2008-08-04 03:46:31 UTC
Permalink
Raw Message
what is supposed to happen if i do the following out-of-bounds negative
memory access:
xor $r0,$r0,$r0
lw $r1,-12($r0)
disp $r1,0

my program just goes back to instruction 0x0000- is this how it responds
to errors? do we have to handle any errors?
[Instr] Albert Chae
2008-08-04 07:37:23 UTC
Permalink
Raw Message
You can assume the code your CPU is running is being nice, so no, you
don't have to worry about cases like this.

Albert
Post by Stephen Tu
what is supposed to happen if i do the following out-of-bounds negative
xor $r0,$r0,$r0
lw $r1,-12($r0)
disp $r1,0
my program just goes back to instruction 0x0000- is this how it responds to
errors? do we have to handle any errors?
Loading...