home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
pctchnqs
/
1990
/
number4
/
shift.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1990-09-13
|
543b
|
11 lines
FUNCTION ShiftDWordRight(Target : LongInt;
ShiftBy : Integer) : LongInt;
INLINE($59/ { POP CX Pop ShiftBy value into CX }
$58/ { POP AX Pop LSW of target into AX }
$5A/ { POP DX Pop MSW of target into DX }
$F8/ { CLC Clear carry flag }
$D1/$DA/ { RCR DX,1 Rotate DX thru carry flag }
$D1/$D8/ { RCR AX,1 Rotate AX thru carry flag }
$E2/$FA); { LOOP -6 DEC CX; Loop if CX > 0 }