Operations on a block of data such as Block Move and Block Exchange is performed using Assembly programming.
Block Move Operation
Aim:
To perform block move operation using Assembly language for 8086 microprocessor.
Software Used:
MASM
Program Code:
Sample Input and Output:
Input:
DS: 0000 01 01 02 02 03 03 04 04 05 05
Output:
ES: 0000 01 01 02 02 03 03 04 04 05 05
Result:
A block of data from Data segment has been moved to Extra segment.
Block Exchange Operation
To perform block exchange operation using Assembly language for 8086 microprocessor.
Software Used:
MASM
Program Code:
Sample Input and Output:
Input:
DS: 0000 01 01 02 02 03 03 04 04 05 05
ES: 0000 06 06 07 07 08 08 09 09 0A 0A
Output:
DS: 0000 06 06 07 07 08 08 09 09 0A 0A
ES: 0000 01 01 02 02 03 03 04 04 05 05
Result:
A block of data has been exchanged between Data segment and Extra segment.
No comments:
Post a Comment