Skip to content
  • Tim Hentenaar's avatar
    Add bitwise ops and base conversion (DEC/OCT/HEX) in TI mode · c4f1bdb1
    Tim Hentenaar authored
    
    
    These operations implicitly truncate their parameters, and result to
    integers:
    
    * not
    * and
    * or
    * xor
    * shl
    * shr
    * mod
    * trunc
    
    Base 2 was left out of the base conversion code intentionally as it
    would require making the UI at least one third wider.
    
    Attempts to change base with negative values will simply display
    "error." Note that with larger numbers, the result may be inaccurate
    due to rounding.
    
    I've also bound the Return key to the equal() action.
    
    Signed-off-by: default avatarTim Hentenaar <tim@hentenaar.com>
    c4f1bdb1