306assignment3 - .orig x3000 lea r0 mess1 puts ld r1 block...

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

.orig x3000 lea r0, mess1 puts ld r1, block; r1 is D not r1,r1; add r1,r1,#1; r1 contains 2s comp of D ld r3, wood; r3 is E not r3,r3 add r3,r3,#1; r3 contains 2s comp of E and r4,r4,#0 and r5,r5,#0 lea r5, blank; address of first shifted character start getc and r2,r2,#0 add r2,r0,r1; compare input character to D brz SOP; branch if character is D to SOP and r2,r2,#0 add r2, r3,r0; compare input character to E brnp start; branch back to start if character is neither D or E soop out lea r0, mess2 puts loop getc out and r1,r1,#0 ld r1, enter add r1,r1,r0; comparing non shifted value to enter brz all; if not enter encrypt and r2,r2,#0 and r1,r1,#0 and r3,r3,#0 and r4,r4,#0 ld r1, NUM1; 1f ld r3, NUM2; e0 and r6,r6,#0; set counter for the rotation add r6,r6,#3; set counter " " and r2,r0,r1; r2 contains last 5bits and r3,r0,r3; r3 contains first 3bits OP ld r4, NUM3; 20 add r2,r2,r2; rotation of bits and r4,r2,r4; check to see if 6th bit is pos or zer brnz NEXT and r2,r2,r1 add r2,r2,#1; increment 1 to 5bit value NEXT add r6,r6,#-1; decrement 1 from counter brp OP and r4,r4,#0
Image of page 1

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

Image of page 2
This is the end of the preview. Sign up to access the rest of the document.
  • Fall '07
  • Ambler

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