Code example for BigInteger

Methods: shiftRighttoString

            // Get the acc field. 
            String acc = ASCView.getAccField();
            // Use the big integer class to right shift. 
            BigInteger big = new BigInteger(acc, 16);
            big = big.shiftRight(1);
            // Set acc to the new value. 
        } catch (Exception e) {
            EmulatorControl.addError(new EmulatorError(">>ERROR<< AN ERROR OCCURED WITH THE SHR OPERATION.", 0)); 
            return false; 
        return true; 
Connect your IDE to all the code out there  Get Codota for Java