2nd lab 427 - ECE-427 Microcomputer Architecture and...

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

View Full Document Right Arrow Icon
ECE-427 Microcomputer Architecture and Interfacing BCD & ASCII ADDITION AND SUBTRACTION LAB REPORT #2 By: Abhigyan Bhuyan 16032536
Image of page 1

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

View Full Document Right Arrow Icon
OBJECTIVE: To code Assembly language instructions to perform addition and subtraction on packed BCD numbers To code Assembly language to perform addition and subtraction on ASCII data. Activity 1 : Adding two BCD numbers and store the results in BCD. Adding 75 and 53 C:\Documents and Settings\Lab501>DEBUG 0AEC:0100 MOV BL,53 0AEC:0102 MOV AL,75 0AEC:0104 ADD AL,BL 0AEC:0106 DAA 0AEC:0107 -T AX=0000 BX=0053 CX=0000 DX=0000 SP=FFEE BP=0000 SI=0000 DI=0000 DS=0AEC ES=0AEC SS=0AEC CS=0AEC IP=0102 NV UP EI PL NZ NA PO NC 0AEC:0102 B075 MOV AL,75 -T AX=0075 BX=0053 CX=0000 DX=0000 SP=FFEE BP=0000 SI=0000 DI=0000 DS=0AEC ES=0AEC SS=0AEC CS=0AEC IP=0104 NV UP EI PL NZ NA PO NC 0AEC:0104 00D8 ADD AL,BL -T AX=00C8 BX=0053 CX=0000 DX=0000 SP=FFEE BP=0000 SI=0000 DI=0000 DS=0AEC ES=0AEC SS=0AEC CS=0AEC IP=0106 OV UP EI NG NZ NA PO NC 0AEC:0106 27 DAA -T AX=0028 BX=0053 CX=0000 DX=0000 SP=FFEE BP=0000 SI=0000 DI=0000 DS=0AEC ES=0AEC SS=0AEC CS=0AEC IP=0107 NV UP EI PL NZ NA PE CY 0AEC:0107 C4DB LES BX,BX -
Image of page 2
Activity 2 : Adding two BCD numbers and store the results in hex.: Adding 75 and 53 C:\Documents and Settings\Lab501>DEBUG -A 0B11:0100 MOV BL,53 0B11:0102 MOV Al,75 0B11:0104 ADD AL,BL 0B11:0106 -T AX=0000 BX=0053 CX=0000 DX=0000 SP=FFEE BP=0000 SI=0000 DI=0000 DS=0B11 ES=0B11 SS=0B11 CS=0B11 IP=0102 NV UP EI PL NZ NA PO NC 0B11:0102 B075 MOV AL,75 -T AX=0075 BX=0053 CX=0000 DX=0000 SP=FFEE BP=0000 SI=0000 DI=0000 DS=0B11 ES=0B11 SS=0B11
Image of page 3

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

View Full Document Right Arrow Icon
Image of page 4
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