ALP to transfer a block of N= 10 data bytes with overlap, destination block ending on the 6th byte position of the source

THIS IS USED TO TRANSFER ARRAY WITH 6 BYTE OVERLAP
       .MODEL SMALL
       .DATA
               POS EQU 5
               DSTN DB 10-(POS+1) DUP(0)
               SRC DB 11H, 22H, 33H, 44H, 55H, 66H, 77H, 88H, 99H, 0AAH
       .CODE
               MOV AX, @DATA
               MOV DS, AX
               LEA SI, SRC
               LEA DI, DSTN
               MOV CX, 10
         LOC1: MOV AL,[SI]
               MOV [DI],AL
               INC SI
               INC DI
               LOOP LOC1
               MOV AH,4CH
               INT 21H
               END

SHARE

Rishabh Chatterjee

Hi. I’m Engineering Student. I’m YouTuber. I’m Trying to find my passion.Sharing my life experiences with the world.

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment

Featured post

BENGALURU TO KANNUR

Welcome to Part 1 Of My Bengaluru To Kannur Trip.After almost 6 months finally im going on a road trip.I Hope you all enjoy this video.