Chapter 05c - MSP430 ISA - Instructions

Op code mov s reg r3 ad register bw 16 bits as

This preview shows page 22 - 25 out of 25 pages.

therefore the contents of R3 are moved to itself. Op-code mov S-reg r3 Ad Register b/w 16-bits As Register D-reg r5 0 1 0 0 0 0 1 1 0 0 0 0 0 0 1 1 NOP Emulated Instructions
Image of page 22

Subscribe to view the full document.

BYU CS/ECEn 124 Chapter 05c - MSP430 Instructions 23 Example: Emulated Instructions Add the carry flag to the register R5: Instruction code: 0x6305 This instruction is equivalent to ADDC R3,R5 , where R3 takes the value #0 . Op-code addc S-reg r3 Ad Register b/w 16-bits As Register D-reg r5 0 1 1 0 0 0 1 1 0 0 0 0 0 1 0 1 ADC R5 Emulated Instructions
Image of page 23
BYU CS/ECEn 124 Chapter 05c - MSP430 Instructions 24
Image of page 24

Subscribe to view the full document.

BYU CS/ECEn 124 Chapter 05c - MSP430 Instructions 25 Data Instructions Mnemonic Op-code V N Z C Operation Description MOV 0 1 0 0 src dst Move source to destination CMP 1 0 0 1 dst-src Compare source to destination ADD 0 1 0 1 src+dst dst Add source to destination ADDC 0 1 1 0 src+dst+C dst Add src and C to dst SUBC 0 1 1 1
Image of page 25

You've reached the end of your free preview.

Want to read all 25 pages?

  • Fall '08
  • Staff
  • Machine code, BYU CS/ECEn

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