1
0
mirror of https://gitlab.os-k.eu/os-k-team/kvisc.git synced 2023-08-25 14:05:46 +02:00
kvisc/vm/in/JUMPS

44 lines
829 B
Plaintext
Raw Normal View History

2019-06-23 12:40:18 +02:00
# 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 #
#---------------------------------------------------------------------------#
#
2019-06-30 13:46:44 +02:00
# Absolute jump (JMP) instruction
2019-06-23 12:40:18 +02:00
#
# RIP = $1
#
j ri
jmp ri
#
2019-06-30 13:46:44 +02:00
# RCX-dependent absolute jump (LOOP) instruction
2019-06-23 12:40:18 +02:00
#
# IF (RCX > 0) THEN
# RCX = RCX - 1
# RIP = $1
# FI
#
loop ri
2019-06-30 13:46:44 +02:00
#
# Relative jump (BCH) instruction ("branch")
#
# RIP = RIP + $1
#
b ri
bch ri
#
# RCX-dependent relative jump (BOOP) instruction
#
# IF (RCX > 0) THEN
# RCX = RCX - 1
# RIP = RIP + $1
# FI
#
boop ri