0 penilaian0% menganggap dokumen ini bermanfaat (0 suara)
11 tayangan1 halaman
This document describes an assembly language program to add two binary-coded decimal (BCD) numbers. The program moves the first BCD number into the AL register, adds the second BCD number, uses decimal adjust after addition to handle carry bits, and stores the result in memory locations R and R+1 by repeating the addition with a 0 to propagate any remaining carry. The result is the addition of the two input BCD numbers.
This document describes an assembly language program to add two binary-coded decimal (BCD) numbers. The program moves the first BCD number into the AL register, adds the second BCD number, uses decimal adjust after addition to handle carry bits, and stores the result in memory locations R and R+1 by repeating the addition with a 0 to propagate any remaining carry. The result is the addition of the two input BCD numbers.
Hak Cipta:
Attribution Non-Commercial (BY-NC)
Format Tersedia
Unduh sebagai DOC, PDF, TXT atau baca online dari Scribd
This document describes an assembly language program to add two binary-coded decimal (BCD) numbers. The program moves the first BCD number into the AL register, adds the second BCD number, uses decimal adjust after addition to handle carry bits, and stores the result in memory locations R and R+1 by repeating the addition with a 0 to propagate any remaining carry. The result is the addition of the two input BCD numbers.
Hak Cipta:
Attribution Non-Commercial (BY-NC)
Format Tersedia
Unduh sebagai DOC, PDF, TXT atau baca online dari Scribd
Adams Engineering College, Paloncha ECE Department MPMC LAB
Experiment No.: 7 Page 1 of 1 Year : III/IV B.Tech II Semester
ADDITION OF TWO BCD NUMBERS
Aim: - To write an assembly language program for addition of two BCD numbers. MOV AL, A ADD AL, B DAA MOV R, AL MOV AL, 00 ADC AL , 00 MOV R+1, AL END Result: Addition of two BCD numbers is obtained.