Friday, June 5, 2020

8086 Assembly Language Program Block exchange



data segment
blk1 bd 10 dup (?)
blk2 db 10 dup(?)
data ends
code segment
start : assume  cs :code,  ds :data
mov ax , data
mov ds ,ax
lea si ,blk1
lea di , blk2
mov cl , 0ah
up: mov al ,[si]
mov ah ,[di]
mov [di] ,al
mov [si] ,ah
inc di
inc si
dec cl
jnz up
mov ah ,4ch
int 21h
code ends
end start


Programs:-


For many other Assembly Language  Programs related to microprocessor 8086 visit our  BLOG 

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


No comments:

Post a Comment