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

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ECE-427 Microcomputer Architecture and Interfacing BCD & ASCII ADDITION AND SUBTRACTION LAB REPORT #2 By: Abhigyan Bhuyan 16032536 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- 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 CS=0B11 IP=0104 NV UP EI PL NZ NA PO NC 0B11:0104 00D8 ADD AL,BL...
View Full Document

This note was uploaded on 01/23/2011 for the course ECE 427 taught by Professor Bbhu during the Spring '10 term at University of Missouri-Kansas City .

Page1 / 10

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

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

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