Friday, June 19, 2020

8086 Assembly Language Program to perform Block transfer using STRING instructions

For many other Assembly Language  Programs related to microprocessor 8086 , C++ , C, DataStructures visit our  BLOG 

DATA SEGMENT 
arr1  DB   100DUP(?)     
DATA ENDS
EXTRA SEGMENT 
arr2  DB   100DUP(?)     
EXTRA ENDS
CODE  SEGMENT
START: ASSUME CS:CODE , DS:DATA , ES:EXTRA
MOV  AX, DATA   
MOV  DS, AX  
MOV  AX, EXTRA  
MOV ES, AX      
LEA SI,arr1
LEA DI, arr2
MOV CX, 0064H  -(hexadecimal of 100)
CLD  
UP: MOVSB
      REPNZ
      LOOP UP  -(LOOP FOR 100 TIMES) 
INT  21H
CODE ENDS
END START

String reverse 8086 program
block transfer using string
string concatenation
string length calculation
Block Transfer 
Block reverse

Programs:-

For many other Assembly Language  Programs related to microprocessor 8086 , C++ , C, DataStructures visit our  BLOG 

There are programs of largest ,smallest ,division ,multiplication,odd/even,block operation ,string operations,BCD ,etc

1 comment:

  1. Thanks for the code !!
    It works . best site for microprocessor. You should be on top !! keep it up

    ReplyDelete