# The OS/K Team licenses this file to you under the MIT license. # See the LICENSE file in the project root for more information. #---------------------------------------------------------------------------# # Logical instructions # #---------------------------------------------------------------------------# # # TEST Comparison instruction # # $1 AND $2 # # Clears OF and CF # Sets ZF and SF according to the result # test rim rim # # Bitwise NOT operation # # $1 = NOT($2) # # Preserves all flags # not rm rim # # Bitwise OR operation # # $1 = $1 OR $2 # # Clears OF and CF # Sets ZF and SF according to the result # or rm rim orf rm rim # # Bitwise AND operation # # $1 = $1 AND $2 # # Clears OF and CF # Sets ZF and SF according to the result # and rm rim andf rm rim # # Bitwise XOR operation # # $1 = $1 XOR $2 # # Clears OF and CF # Sets ZF and SF according to the result # xor rm rim xorf rm rim # To document shl rm rim shr rm rim shlf rm rim shrf rm rim sal rm rim sar rm rim salf rm rim sarf rm rim