mirror of
https://gitlab.os-k.eu/os-k-team/kvisc.git
synced 2023-08-25 14:05:46 +02:00
jcxz ftw
This commit is contained in:
parent
0a29f911a2
commit
bb7730d3ce
@ -1,4 +1,4 @@
|
||||
# The OS/K Team licenses this file to you under the MIT license.
|
||||
# See the LICENSE file in the project root for more information.
|
||||
|
||||
all: k-as.py
|
||||
k-as: k-as.py
|
||||
|
@ -133,8 +133,7 @@ jb i
|
||||
jbe r
|
||||
jbe i
|
||||
|
||||
# Jump if RCX is 0
|
||||
#jcxz
|
||||
jcxz
|
||||
|
||||
#
|
||||
# Movement instructions
|
||||
|
@ -65,3 +65,10 @@ IMPL_START_1(jbe)
|
||||
ctx->r[RIP].val = v1;
|
||||
}
|
||||
IMPL_END;
|
||||
|
||||
IMPL_START_1(jcxz)
|
||||
{
|
||||
if (!ctx->r[RCX].val)
|
||||
ctx->r[RIP].val = v1;
|
||||
}
|
||||
IMPL_END;
|
||||
|
Loading…
Reference in New Issue
Block a user