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

Info iconThis 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
Background image of page 1

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

View Full DocumentRight 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
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/06/2008 for the course EE 306 taught by Professor Ambler during the Spring '07 term at University of Texas at Austin.

Page1 / 6

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

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online