Closed marekjm closed 7 years ago
Viua instruction set should include instructions for bit operations. New instructions include:
bits
bitand
bitor
bitnot
bitxor
shl
shr
ashl
ashr
rol
ror
bitat
bitset
Viua instruction set should include instructions for bit operations. New instructions include:
bits
: creates a sequence of N bitsbitand
: bitwise andbitor
: bitwise orbitnot
: bitwise notbitxor
shl
: shift leftshr
shift rightashl
: arithmetic shift leftashr
: arithmetic shift rightrol
: rotate leftror
: rotate rightbitat
: get bit N of bit sequencebitset
: set bit N of bit sequence to 0 or 1