{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

LAB3 - ;Programming Assignment 3[LA3;EE306 FALL'07.ORIG...

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 .ORIG x3000 LD R1, LTRD NOT R1, R1 ADD R1, R1, #1 LD R2, LTRE NOT R2, R2 ADD R2, R2, #1 LEA R0, MSSG1 PUTS AND R0, R0, #0 AND R3, R3, #0 PROMPT1GETC OUT ADD R3, R1, R0 BRz DECRYP ADD R3, R2, R0 BRz ENCRYP LD R0, LTRR OUT LEA R0, ERRMSSG PUTS AND R0, R0, #0 BRnzp PROMPT1 DECRYPLD R0, LTRR OUT LEA R0, MSSG2 PUTS LD R6, MEMLOC LD R1, LTRENTR NOT R1, R1 ADD R1, R1, #1 AND R5, R5, #0 INPUTDGETC ADD R3, R1, R0 BRz DCRYP2 OUT JSR F1 BRnzp INPUTD DCRYP2LD R0, LTRDN STR R0, R6, #0 LD R6, MEMLOC AND R5, R5, #0 ADD R5, R5, #2 ST R5, SHIFTT LD R0, LTRR OUT BRnzp F2
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Sheet1 Page 2 ENCRYPLD R0, LTRR OUT LEA R0, MSSG2 PUTS LD R6, MEMLOC LD R1, LTRENTR NOT R1, R1 ADD R1, R1, #1 AND R5, R5, #0 INPUTEGETC ADD R3, R1, R0 BRz ECRYP2 OUT JSR F1 BRnzp INPUTE ECRYP2LD R0, LTRDN STR R0, R6, #0 LD R6, MEMLOC AND R5, R5, #0 ADD R5, R5, #3 ST R5, SHIFTT LD R0, LTRR OUT BRnzp F2 F1 STR R0, R6, #0 ADD R6, R6, #1 RET F2 LD R5, SHIFTT LDR R1, R6, #0 F2RLD R4, LTRDN NOT R4, R4 ADD R4, R4 #1 ADD R4, R4, R1 BRz END LD R4, NOTVAL AND R2, R1, R4 ADD R2, R2, R2 LD R4, NOTVAL3 AND R3, R2, R4 ADD R3, R3, R3
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ 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