0
8.9kviews
Using string instructions write a program in 8086 assembly to copy a block ten bytes initialized in data segment to extra segment, Assume the necessary details.
1 Answer
0
349views
Label Instructions Comment
  MOV AX, 2000H Initialize data segment
  MOV DS, AX  
  MOV AX, 3000H Initialize destination segment
  MOV ES, AX  
  MOV SI, 0000H Initialize pointers
  MOV DI, 0000H  
  MOV CX, 000AH Initialize counter to size of block
  CLD Clear direction flag for auto-increment
REP: MOVSB Transfer block
  MOV AH, 4CH Terminate program
  INT 21H  
Please log in to add an answer.