Fix off-by-one in calculating the value of sBx

Sun, 23 May 2010 13:27:36 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sun, 23 May 2010 13:27:36 +0100
changeset 32
035aacc192d8
parent 31
bc58527bac34
child 33
6cc1b0a8dd97

Fix off-by-one in calculating the value of sBx

lvm.js file | annotate | diff | comparison | revisions
--- a/lvm.js	Sun May 23 13:26:51 2010 +0100
+++ b/lvm.js	Sun May 23 13:27:36 2010 +0100
@@ -251,7 +251,7 @@
 
 function INS_sBx(ins)
 {
-	return INS_Bx(ins)+0x1FFFE;
+	return (INS_Bx(ins)-0x1FFFF);
 }
 
 function LFunction(chunk, env)

mercurial