View the step-by-step solution to:

Question 1: (20 points) This question involves writing a small program using SIMPLE II instructions. (See Assignment II for the SIMPLE II instruction...

Question 1: (20 points)
This question involves writing a small program using SIMPLE II instructions.
(See Assignment II for the SIMPLE II instruction set). Also, recall the rst six reserved cells
of the memory.
1) CC | Bu er Status (Number of lled locations in the Bu er)
2) BLP { Bu er Location Pointer
3) SAM { Starting Address of User Program
4) IAM { Input Address of User Program
5) TEMP - A Temporary Location
6) JPLOC - Address of Jump location
Assume that the SIMPLE II memory locations 7 through 10 contain the following.
M[7] contains some unknown integer value
M[8] contains integer value 100
M[9] contains integer value 1
M[10] contains integer value 268
Further assume that the memory contains two code segments called LOAD-USER-1 and
LOAD-USER-2 beginning at locations 269 and 369 respectively.
Write a SIMPLE II code segment to accomplish the following task:
if (M[7] == 268)
Jump to the code segment LOAD-USER-2;
else if ( M[7] > 268)
Jump to the code segment LOAD-USER-1;
else
Halt;
Assume that your code segment will be loaded in memory starting at location 11.

This question was asked on Mar 19, 2010.

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors and customizable flashcards—available anywhere, anytime.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access or to earn money with our Marketplace.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
  • -

    Flashcards

    Browse existing sets or create your own using our digital flashcard system. A simple yet effective studying tool to help you earn the grade that you want!

    Browse Flashcards