Skip to content

Commit

Permalink
add break to SP_ADD, add STRBI solution
Browse files Browse the repository at this point in the history
  • Loading branch information
John Planck committed Jan 17, 2020
1 parent 7f5b9ac commit af009fb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion execute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ void execute() {
rf.write((sp.instr.mov.d << 3 ) | sp.instr.mov.rd, rf[sp.instr.mov.rm]);
break;
case SP_ADD:
break;
case SP_CMP:
// need to implement these
break;
Expand Down Expand Up @@ -284,7 +285,10 @@ void execute() {
// need to implement
break;
case STRBI:
// need to implement
addr = rf[ld_st.instr.ld_st_imm.rn] + ld_st.instr.ld_st_imm.imm;
temp = dmem[addr];
temp.set_data_ubyte4(0, rf[ld_st.instr.ld_st_imm.rt]&0xFF);
dmem.write(addr, temp);
break;
case LDRBI:
// need to implement
Expand Down

0 comments on commit af009fb

Please sign in to comment.