just changed the integerValueOf method only in my class to do the same as Integer.parseInt with base 2, because register numbers are never going to be negative