اذهب إلى المحتوى
  • 0

تصحيح تعليمات MIPS

محمد الحربي

السؤال

Correct the following MIPS instructions to perform index-out-of-bounds check                                

slt     $t0, $s1, $t2 
beq     $t0, $zero, IndexOutOfBounds

Assume that $t2 holds array length and $s1 holds array index.
 

رابط هذا التعليق
شارك على الشبكات الإجتماعية

Recommended Posts

انضم إلى النقاش

يمكنك أن تنشر الآن وتسجل لاحقًا. إذا كان لديك حساب، فسجل الدخول الآن لتنشر باسم حسابك.

زائر
أجب على هذا السؤال...

×   لقد أضفت محتوى بخط أو تنسيق مختلف.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   جرى استعادة المحتوى السابق..   امسح المحرر

×   You cannot paste images directly. Upload or insert images from URL.

  • إعلانات

  • تابعنا على



×
×
  • أضف...