BITS Pilani

  • Page last updated on Monday, September 12, 2022

Downloads

banner
Downloads

VIDEO LECTURES LINK

8086 Assembly Program
Write an 80486 ALP that will add the two nibbles in a data byte together and if there is a carry in the nibble addition it will write ‘C’ into a memory location. If there is no carry in nibble addition it will write ‘N’ into the location. This has to be done on array of 25d data bytes stored from location dat1. The result for each byte must be written from location car1.

For E.g. If

dat1 db 45h,89h,27h, 0F2h, 3Eh and so on

  The program has to add 4 and 5 in case of first byte and there will be no carry in adding the two nibbles (4-bit addition) so N has to be written into car1 and if case of 2nd data 8 and 9 will be added and result will have a carry in the nibble addition so C will be written into next location.

  Hence after the program is executed the location

  car1 will have the values ‘N’, ‘C’, ‘N’,’C’,’C’ and so on

    
 
 
How to Execute above program in TASM
 
 
 
Convert the MOV EAX,[EBX+8*ECX]  into 8086 Machine Instruction 
 
 
 
 Convert MOV DH,[BX+DI+20H] into machine instruction
 
 
 
 

Quick Links

    An Institution Deemed to be University estd. vide Sec.3 of the UGC Act,1956 under notification # F.12-23/63.U-2 of Jun 18,1964

    © 2025 Centre for Software Development,SDET Unit, BITS-Pilani, India.

    Designed and developed by fractal | ink design studios