the 65816 CPU has a BRA instruction, how would you efficiently simulate it in x86?
Posted on 2003-06-28 15:00:27 by jack
JMP maybe?
Posted on 2003-06-28 15:05:40 by GogetaSSJ4
Well... read the byte that follows, and sign extend it to 16 bits. Add it to the current PC, then add 2. Just like you would with the other branch instructions. As always, PB is unchanged. No flags are affected.
Posted on 2003-06-28 15:12:02 by Sephiroth3