Skip to content

Commit

Permalink
Implemented TNE
Browse files Browse the repository at this point in the history
  • Loading branch information
isuru-c-p committed Jul 27, 2012
1 parent 3373de0 commit e8a84eb
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion js/common/cpu.js
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,18 @@ function MipsCpu () {
}

this.TNE = function (op) {
WARN("TNE unimple");
DEBUG("TNE");
var rs = getRs(op);
var rt = getRt(op);

var rs_val = this.genRegisters[rs].asUInt32();
var rt_val = this.genRegisters[rt].asUInt32();

if(rs_val != rt_val)
{
this.triggerException(20, 13);
}

this.advancePC();
}

Expand Down

0 comments on commit e8a84eb

Please sign in to comment.