Commit d1aea6b7 authored by Shen, Siran's avatar Shen, Siran
Browse files

all tests pass now apart from gpis which is optional

parent 097de796
......@@ -229,13 +229,13 @@ void single_data_transfer_instr(decoded *decodedInstr, armstate *state){
if (data < 65535) {
state->regs[rd] = *memAdd;
} else {
printf("Error: Out of bounds memory access at address 0x%x\n", data);
printf("Error: Out of bounds memory access at address 0x%08x\n", data);
}
} else {
if ((data < 65535 && immediate == 0) || immediate == 1) {
*memAdd = state->regs[rd];
} else {
printf("Error: Out of bounds memory access at address 0x%x\n", data);
printf("Error: Out of bounds memory access at address 0x%08x\n", data);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment