Shifts and masks
Posted: Mon Jan 03, 2011 6:01 am
How is the best way to do the Pascal equivalent of:
Code: Select all
R := ( R shr 6) and $3FF;
A technical support group for Astrobe Oberon users
https://astrobe.com./forum/
Code: Select all
R := ( R shr 6) and $3FF;
Code: Select all
R := LSR(R, 6) MOD 0400H;
Code: Select all
E1B0B32BH MOV S R11,R11 LSR 6
E1A0BB0BH MOV R11,R11 LSL 22
E1B0BB2BH MOV S R11,R11 LSR 22
Code: Select all
R := LSR(LSL(value, 16));
Code: Select all
E1B0B80BH MOV S R11,R11 LSL 16
E1B0BB2BH MOV S R11,R11 LSR 22
Code: Select all
R := LSR(LSL(value, 16));
Code: Select all
R := LSR(LSL(value, 16), 22);
Code: Select all
R := LSL(value, 16);
R := LSR(R, 22);