readme.txt for list - The Program is most easily described...

This preview shows page 1 - 2 out of 12 pages.

The Program is most easily described in C++ so I have provided a short diagram of how the program would work in C++ as I believe it helps create a clear picture what the program is exactly doing void Print_End(); int a(R1); //no actual loads where made here it just represents the row stated int b(R2); //no actual loads where made here it just represents the row stated int c(R3); //no actual loads where made here it just represents the row stated int input(R0); //no actual loads where made here it just represents the row stated cin(R6 & R7 coversions) >> input; //R6 & R7 where loaded with ASCII(xFFD0) & Binary(BLKW #10 loaded with STR) to help convert them a = input //I used a delayed method of the loading the number before entered to convert them properly cout << input; //line 1 this is a stand in for Trap x20 cin >> input; //line 2 this is a stand in for Trap x21 and the other thing previously discribed b = input //I used a delayed method of the loading the number before entered to convert them properly cout << input; //line 2 this is a stand in for Trap x20 cin >> input; //line 3 this is a stand in for Trap x21 and the other thing previously discribed c = input //I used a delayed method of the loading the number before entered to convert them properly, cout << input; //line 2 this is a stand in for Trap x20 int d(R4) = a; //copy R1(a) to R4(d) int e(R5) = b; //copy R2(b) to R5(e) int f(R6) = c' //copy R3(c) to R6(f) if ( (d-e) < 0 ) //use BRzp to check if d(R4) < e(R5) by subtraction { if ( (f-e) < 0 ) //use BRzp to check if f(R6) < e(R5) by subtraction { if ( (d-f) < 0 ) //use BRzp to check if d(R4) < f(R6) by subtraction { f = b ; //copy R2(b) to R6(f) e = a; //copy R1(a) to R5(e) d = c; //copy R3(c) to R4(d) Print_End(); //JMP(JSR) to Print_End } //end bit f = b //copy R2(b) to R6(f) e = c //copy R3(c) to R5(e) d = a //copy R1(a) to R4(d) Print_End(); //JMP(JSR) to Print_End } //end of if f = c //copy R3(c) to R6(f) e = b //copy R2(b) to R5(e) d = a //copy R1(a) to R4(d) Print_End(); //JMP(JSR) to Print_End } //end of if int d(R4) = a; //copy R1(a) to R4(d) int e(R5) = b; //copy R2(b) to R5(e) int f(R6) = c; //copy R3(c) to R6(f) if ( (d-f) < 0 ) //use BRzp to check if d(R4) < f(R6) by subtraction {
Image of page 1

Subscribe to view the full document.

if ( (e-f) < 0 ) //use BRzp to check if e(R5) < f(R6) by subtraction { if ( (d-e) < 0 ) //use BRzp to check if d(R4) < e(R5) by subtraction { f = c; //copy R3(c) to R6(f) e = b; //copy R2(b) to R5(e) d = a; //copy R1(a) to R4(d) Print_End(); //JMP(JSR) to Print_End } //end bit f = c //copy R3(c) to R6(f) e = a //copy R1(a) to R5(e) d = b //copy R2(b) to R4(d) Print_End(); //JMP(JSR) to Print_End } //end of if f = b //copy R2(b) to R6(f) e = c //copy R3(c) to R5(e) d = a //copy R1(a) to R4(d) Print_End(); //JMP(JSR) to Print_End } //end of if int d(R4) = c; //copy R3(c) to R4(d) int e(R5) = b; //copy R2(b) to R5(e) int f(R6) = a; //copy R1(a) to R6(f) if ((d-e) < 0) //use BRzp to check if d(R4) < e(R5) by subtraction { d = c; //copy R3(c) to R4(d) e = b; //copy R2(b) to R5(e) Print_End(); //JMP(JSR) to Print_End } //end of if d = b; //copy R2(b) to R4(d) e = c; //copy R3(c) to R5(e) Print_End(); //JMP(JSR) to Print_End void Print_End() //start of Print_End it returns nothing { cout << endl; //stands in for the space member(ie Newline x000A) that is loaded into R0 then printed out to create a new line cout << f; //stands in for the converter ASC2 (x30) that converts the number
Image of page 2
You've reached the end of this preview.
  • Spring '14
  • AfsanehMinaie

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern