1
0
mirror of https://gitlab.os-k.eu/os-k-team/kvisc.git synced 2023-08-25 14:05:46 +02:00
This commit is contained in:
julianb0 2019-06-17 13:15:57 +02:00
parent d8893823b6
commit dd911cc4f2
No known key found for this signature in database
GPG Key ID: 9C7ACF0C053FB8A1
4 changed files with 57 additions and 5 deletions

View File

@ -5,10 +5,11 @@
; Main function
;
main:
call str_test
call showoff
ret
showoff:
call ramdev_test
call bswap_test
call itoa_test
call str_test

View File

@ -394,6 +394,15 @@ stosb r rim
lodsb
lodsb r
lodsb r r
lodsw
lodsw r
lodsw r r
lodsl
lodsl r
lodsl r r
lodsq
lodsq r
lodsq r r
#
# Scan string for a particular value (SCASx)
@ -419,6 +428,15 @@ lodsb r r
scasb
scasb rim
scasb r rim
scasw
scasw rim
scasw r rim
scasl
scasl rim
scasl r rim
scasq
scasq rim
scasq r rim
#
# Scan string for null terminator (SCAZSx)
@ -448,6 +466,12 @@ scasb r rim
#
scazsb
scazsb r
scazsw
scazsw r
scazsl
scazsl r
scazsq
scazsq r
#
# Compare bytes in strings (CMPSx)
@ -471,6 +495,15 @@ scazsb r
cmpsb
cmpsb r
cmpsb r r
cmpsw
cmpsw r
cmpsw r r
cmpsl
cmpsl r
cmpsl r r
cmpsq
cmpsq r
cmpsq r r
#
# Safe compare bytes in strings (CMPZSx)
@ -484,6 +517,15 @@ cmpsb r r
cmpzsb
cmpzsb r
cmpzsb r r
cmpzsw
cmpzsw r
cmpzsw r r
cmpzsl
cmpzsl r
cmpzsl r r
cmpzsq
cmpzsq r
cmpzsq r r
#
# Move value from string to string (MOVSx)
@ -507,6 +549,15 @@ cmpzsb r r
movsb
movsb r
movsb r r
movsw
movsw r
movsw r r
movsl
movsl r
movsl r r
movsq
movsq r
movsq r r
#---------------------------------------------------------------------------#
# Supervisor only instructions #
@ -619,8 +670,8 @@ cpuid
# may generate numbers from the same generator for other purposes
# than this instruction
#
rand32 rm
rand64 rm
#rand32 rm
#rand64 rm
#
# Get code/data offset (GCO/GCD)

View File

@ -304,7 +304,7 @@ IMPL_START_0(cmpzsb)
}
IMPL_END;
IMPL_START_0(cmzpsw)
IMPL_START_0(cmpzsw)
{
cmpzs_impl(ctx, p1, p2, 2);
}

View File

@ -14,7 +14,7 @@ char *cond_suffixes[] =
};
#ifndef _ATT_STYLE
#define _ATT_STYLE 1
#define _ATT_STYLE 0
#endif
static void dump_acc(ctx_t *ctx, acc_t *p);