ld t8, seg, sib, disp
 
     #Find the sign of the divisor
-    slli t0, t3, 1, flags=(ECF,), dataSize=1
+    slli t0, t8, 1, flags=(ECF,), dataSize=1
 
     # Negate divisor
     sub t3, t0, t8, dataSize=1
     ld t8, seg, riprel, disp
 
     #Find the sign of the divisor
-    slli t0, t3, 1, flags=(ECF,), dataSize=1
+    slli t0, t8, 1, flags=(ECF,), dataSize=1
 
     # Negate divisor
     sub t3, t0, t8, dataSize=1
 
     #Find the sign of the divisor
     #FIXME!!! This depends on shifts setting the carry flag correctly.
-    slli t0, t3, 1, flags=(ECF,)
+    slli t0, t8, 1, flags=(ECF,)
 
     # Negate divisor
     sub t3, t0, t8
 
     #Find the sign of the divisor
     #FIXME!!! This depends on shifts setting the carry flag correctly.
-    slli t0, t3, 1, flags=(ECF,)
+    slli t0, t8, 1, flags=(ECF,)
 
     # Negate divisor
     sub t3, t0, t8