ملحوظة : في جميع الأمثلة الكلام بعد // يعتبر تعليق على السطر أي شرح لمساعدة المستخدم في فهم الأمور Comments
هذه العمليات تتم كلها بين محتويات Accumulator-1 و Accumulator-2 وتخزن النتيجة مكان القديمة في Accumulator-1 بحيث تتم مقارنة كل خانة bit بما يماثلها طبقا للعملية المطلوبة
AW AND Word : 16-Bit
ويأخذ الأمر الصورة :
AW
AW Constant
حيث يتم قبل الأمر تحميل الكلمة الأولى في ACCU1 وتحميل الكلمة الثانية ACCU2
مثال :
L IW20 //Load contents of IW20 into ACCU 1-L.
L IW22 //Load contents of ACCU 1 into ACCU 2. Load contents of IW22 into ACCU 1-L.
AW //Combine bits from ACCU 1-L with ACCU 2-L bits by AND; store result in ACCU
1-L.
T MW 8 //Transfer result to MW8
وفي حالة عمل AND مع ثابت Constant يتم بتحميل الكلمة الأولى في ACCU1 ويتم عمل AND مباشرة مع الرقم ويكون الناتج في ACCU1 مثل الآتي :
L IW20 //Load contents of IW20 into ACCU 1-L.
AW W#16#0FFF //Combine bits of ACCU 1-L with bit pattern of 16-bit constant
(0000_1111_1111_1111) by AND; store result in ACCU 1-L.
JP NEXT //Jump to NEXT jump label if result is unequal to zero, (CC 1 = 1)
OW OR Word :16-Bit
ويأخذ الأمر الصورة :
OW
OW Constant
حيث يتم قبل الأمر تحميل الكلمة الأولى في ACCU1 وتحميل الكلمة الثانية ACCU2
مثال :
L IW20 //Load contents of IW20 into ACCU 1-L.
L IW22 //Load contents of ACCU 1 into ACCU 2. Load contents of IW22 into ACCU
1-L.
OW //Combine bits from ACCU 1-L with ACCU 2-L by OR, store result in ACCU
1-L.
T MW8 //Transfer result to MW8
وفي حالة عمل OR مع ثابت Constant يتم بتحميل الكلمة الأولى في ACCU1 ويتم عمل OR مباشرة مع الرقم ويكون الناتج في ACCU1 مثل الآتي :
L IW20 //Load contents of IW 20 into ACCU 1-L.
OW W#16#0FFF //Combine bits of ACCU 1-L with bit pattern of 16-bit constant
(0000_1111_1111_1111) by OR; store result in ACCU 1-L.
JP NEXT //Jump to NEXT jump label if result is unequal to zero (CC 1 = 1)
XOW Exclusive OR Word : 16-Bit
ويأخذ الأمر الصورة :
XOW
XOW Constant
حيث يتم قبل الأمر تحميل الكلمة الأولى في ACCU1 وتحميل الكلمة الثانية ACCU2
مثال :
L IW20 //Load contents of IW20 into ACCU 1-L.
L IW22 //Load contents of ACCU 1 into ACCU 2. Load contents of ID24 into ACCU 1-L.
XOW //Combine bits of ACCU 1-L with ACCU 2-L bits by XOR, store result in ACCU
1-L.
T MW8 //Transfer result to MW8
وفي حالة عمل XOR مع ثابت Constant يتم بتحميل الكلمة الأولى في ACCU1 ويتم عمل XOR مباشرة مع الرقم ويكون الناتج في ACCU1 مثل الآتي :
L IW20 //Load contents of IW20 into ACCU 1-L.
XOW 16#0FFF //Combine bits of ACCU 1-L with bit pattern of 16-bit constant
(0000_1111_1111_1111) by XOR, store result in ACCU 1-L.
JP NEXT //Jump to NEXT jump label if result is unequal to zero, (CC 1 = 1)
AD AND Double Word : 32-Bit
وهو يقوم بعمل AW ولكن على مستوى 32 خانة أي كل محتويات ACCU1, ACCU2
ويأخذ الأمر الصورة :
AD
AD Constant
حيث يتم قبل الأمر تحميل الكلمة الأولى في ACCU1 وتحميل الكلمة الثانية ACCU2
مثال :
L ID20 //Load contents of ID20 into ACCU 1.
L ID24 //Load contents of ACCU 1 into ACCU 2. Load contents of ID24 into ACCU
1.
AD //Combine bits from ACCU 1 with ACCU 2 by AND, store result in ACCU
1.
T MD8 //Transfer result to MD8
وفي حالة عمل AD مع ثابت Constant يتم بتحميل الكلمة الأولى في ACCU1 ويتم عمل AD مباشرة مع الرقم ويكون الناتج في ACCU1 مثل الآتي :
L ID 20 //Load contents of ID20 into ACCU 1.
AD DW#16#0FFF_EF21 //Combine bits of ACCU 1 with bit pattern of 32-bit constant
(0000_1111_1111_1111_1110_1111_0010_0001) by AND; store result in
ACCU 1.
JP NEXT //Jump to NEXT jump label if result is unequal to zero, (CC 1 = 1)
OD OR Double Word : 32-Bit
ويأخذ الأمر الصورة :
OD
OD Constant
حيث يتم قبل الأمر تحميل الكلمة الأولى في ACCU1 وتحميل الكلمة الثانية ACCU2
مثال :
L ID20 //Load contents of ID20 into ACCU 1.
L ID24 //Load contents of ACCU 1 into ACCU 2. Load contents of ID24 into
ACCU 1.
OD //Combine bits from ACCU 1 with ACCU 2 bits by OR; store result in
ACCU 1.
T MD8 //Transfer result to MD8
وفي حالة عمل OD مع ثابت Constant يتم بتحميل الكلمة الأولى في ACCU1 ويتم عمل OD مباشرة مع الرقم ويكون الناتج في ACCU1 مثل الآتي :
L ID20 //Load contents of ID20 into ACCU 1.
OD DW#16#0FFF_EF21 //Combine bits of ACCU 1 with bit pattern of 32-bit constant
(0000_1111_1111_1111_1110_1111_0010_0001) by OR, store result in
ACCU 1.
JP NEXT //Jump to NEXT jump label if result is not equal to zero, (CC 1 =
1)
XOD Exclusive OR Double Word : 32-Bit
ويأخذ الأمر الصورة :
XOD
XOD Constant
حيث يتم قبل الأمر تحميل الكلمة الأولى في ACCU1 وتحميل الكلمة الثانية ACCU2
مثال :
L ID20 //Load contents of ID20 into ACCU 1.
L ID24 //Load contents of ACCU 1 into ACCU 2. Load contents of ID24 into
ACCU 1.
XOD //Combine bits from ACCU 1 with ACCU 2 by XOR; store result in ACCU
1.
T MD8 //Transfer result to MD8
وفي حالة عمل XOD مع ثابت Constant يتم بتحميل الكلمة الأولى في ACCU1 ويتم عمل XOD مباشرة مع الرقم ويكون الناتج في ACCU1 مثل الآتي :
L ID20 //Load contents of ID20 into ACCU 1.
XOD DW#16#0FFF_EF21 //Combine bits from ACCU 1 with bit pattern of 32-bit constant
(0000_1111_1111_1111_1111_1110_0010_0001) by XOR, store result in
ACCU 1.
JP NEXT //Jump to NEXT jump label if result is unequal to zero, (CC 1 = 1)