akraievoy / elw

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong conditional branch offset encoding

divijan opened this issue · comments

commented

In the following example:
bne $a1,$a0,S addi $v0,$zero,1 S:
bne offset should have been 1 (1 word in addition to PC + 4), but it reads 2 in debugger.