mirror of
https://gitlab.os-k.eu/os-k-team/kvisc.git
synced 2023-08-25 14:05:46 +02:00
44 lines
993 B
Plaintext
44 lines
993 B
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.
|
|
|
|
#---------------------------------------------------------------------------#
|
|
# Jump instructions #
|
|
#---------------------------------------------------------------------------#
|
|
|
|
#
|
|
# Jump (JMP) instruction
|
|
#
|
|
# RIP = $1
|
|
#
|
|
j ri
|
|
jmp ri
|
|
|
|
#
|
|
# RCX-dependent jump (LOOP) instruction
|
|
#
|
|
# IF (RCX > 0) THEN
|
|
# RCX = RCX - 1
|
|
# RIP = $1
|
|
# FI
|
|
#
|
|
loop ri
|
|
|
|
#
|
|
# Conditional absolute jumps (B)
|
|
#
|
|
# COMPARE($1, $2)
|
|
#
|
|
# IF (COND) THEN
|
|
# RIP = $3
|
|
# FI
|
|
#
|
|
# Sets CF, OF, ZF and SF according to the comparison's results
|
|
#
|
|
# This instruction is special in that the COND field specified is not evaluated
|
|
# before the instruction is executed, but after the comparison it effectuates
|
|
#
|
|
# Suffixing B with the REP suffix results in undefined behavior
|
|
#
|
|
b rim rim ri
|
|
|