Small updates to a few VM functions

shra, setCarry, compr...