mirror of
https://gitlab.os-k.eu/os-k-team/kvisc.git
synced 2023-08-25 14:05:46 +02:00
sal
This commit is contained in:
parent
683dd8c473
commit
f5f599c5e6
@ -44,14 +44,12 @@ shl 3
|
||||
shr 3
|
||||
|
||||
#
|
||||
# Arithmetical left/right shift (SAL/SAR)
|
||||
# Arithmetical right shift (SAR)
|
||||
#
|
||||
# $dest = $src1 <<< $src2 (SAL)
|
||||
# $dest = $src1 >>> $src2 (SAR)
|
||||
#
|
||||
# Preserves all flags
|
||||
#
|
||||
sal 3
|
||||
sar 3
|
||||
|
||||
#---------------------------------------------------------------------------#
|
||||
|
@ -16,7 +16,6 @@ IMPL_START(xor) { SRCP(p2); SRCP(p3); *r1 = p2->val ^ p3->val; return 1; }
|
||||
|
||||
IMPL_START(shl) { SRCP(p2); SRCP(p3); *r1 = p2->val << p3->val; return 1; }
|
||||
IMPL_START(shr) { SRCP(p2); SRCP(p3); *r1 = p2->val >> p3->val; return 1; }
|
||||
IMPL_START(sal) { SRCP(p2); SRCP(p3); *r1 = (ulong)((long)p2->val << (long)p3->val); return 1; }
|
||||
IMPL_START(sar) { SRCP(p2); SRCP(p3); *r1 = (ulong)((long)p2->val >> (long)p3->val); return 1; }
|
||||
|
||||
//----------------------------------------------------------------------------//
|
||||
|
Loading…
Reference in New Issue
Block a user