[an error occurred while processing this directive]
|
BFXTR #K16, ACx, dst (Bit Field Extract) делает примерно вот так
dst=0; tmp=k16;
for (i=0; i < 16; i++) {
if (tmp & 0x8000) {
dst = dst << 1;
if (ACx & 0x8000) dst |= 1;
}
ACx = ACx << 1;
tmp = tmp << 1;
}
BFXPA #K16, ACx, dst (Bit Field Expand) все наоборот
dst=0; tmp=k16;
for (i=0; i < 16; i++) {
if (tmp & 1) {
if (ACx & 1) dst |= 1 << i;
ACx = ACx >> 1;
}
tmp = tmp >> 1;
}
E-mail: info@telesys.ru