X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.machine%2Fsrc%2Fnet%2Fmograsim%2Fmachine%2Fisa%2FAsmFloatOperand.java;h=7a1a6ebf2ba0354e9e4581b6ae9c79098f9a6b65;hb=8bed58cd47f4e53a0a83e066d38864aa6875502f;hp=a15d9d5ac04d82f2d5e559b0b1812728f4b305e1;hpb=153f81323a215691a0477af3fd1dd4a9d5b02958;p=Mograsim.git diff --git a/net.mograsim.machine/src/net/mograsim/machine/isa/AsmFloatOperand.java b/net.mograsim.machine/src/net/mograsim/machine/isa/AsmFloatOperand.java index a15d9d5a..7a1a6ebf 100644 --- a/net.mograsim.machine/src/net/mograsim/machine/isa/AsmFloatOperand.java +++ b/net.mograsim.machine/src/net/mograsim/machine/isa/AsmFloatOperand.java @@ -90,7 +90,7 @@ public class AsmFloatOperand implements AsmOperand int bitLength = raw.bitLength() - (bi.signum() - 1) / 2; if (bitLength > size) throw new AsmNumberFormatException("Error parsing %s: bit count %d exceeds size %d", bi, bitLength, size); - BitVectorMutator bvm = BitVectorMutator.ofWidth(size); + BitVectorMutator bvm = BitVectorMutator.ofLength(size); for (int i = 0; i < size; i++) bvm.setLSBit(i, Bit.of(raw.testBit(i))); return bvm.toBitVector();