انت هنا الان : شبكة جامعة بابل > موقع الكلية > نظام التعليم الالكتروني > مشاهدة المحاضرة

Lec5: instruction types

الكلية كلية العلوم للبنات     القسم قسم الحاسبات     المرحلة 3
أستاذ المادة نور كاظم ايوب مهدي المهدي       01/11/2015 19:38:05
Lecture 5: instruction types Lecturer: Noor Kadhum

5.1 Instruction types
Operands specify the value an instruction is to operate on,
and where the result is to be stored. Instruction sets are
classified by the number of operands used. An instruction may
have no, one, two, or three operands.
1- Three addresses (operands)
In instruction that have three operands, one of the
operand specifies the destination as an address where the
result is to be saved. The other two operands specify the source
either as addresses of memory location or constants.

Example: Execute the following instruction using 3 address
format : x=c*b/r-d
Sol :
Step No. Step description 1 mul R1,c,b R1? c*b 2 sub R2,r,d R2 ? r-d 3 div x , R1,R2 X ? r1/r2
2- Two addresses
In this type both operands are sources. But the first
operand is used as destination therefore the first operand must
be an address in memory, but the second may be an address or
a constant.
1
Babylon university - Sciences College For Women - Computer Dep. - Architecture For Third class

المادة المعروضة اعلاه هي مدخل الى المحاضرة المرفوعة بواسطة استاذ(ة) المادة . وقد تبدو لك غير متكاملة . حيث يضع استاذ المادة في بعض الاحيان فقط الجزء الاول من المحاضرة من اجل الاطلاع على ما ستقوم بتحميله لاحقا . في نظام التعليم الالكتروني نوفر هذه الخدمة لكي نبقيك على اطلاع حول محتوى الملف الذي ستقوم بتحميله .