mirror of
https://gitlab.os-k.eu/os-k-team/kvisc.git
synced 2023-08-25 14:05:46 +02:00
72 lines
1.1 KiB
Plaintext
72 lines
1.1 KiB
Plaintext
# 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($1)
|
|
#
|
|
# Preserves all flags
|
|
#
|
|
not rm
|
|
|
|
#
|
|
# 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
|
|
|