Posts

Showing posts from October, 2019

Assembly language program for transfer of data from one block of memory location to any other block of memory location (Overlapping)

Program: MVI C,5 LXI H,2055 LXI D,2059 BACK: MOV A,M STAX D DCX H DCX D DCR C JNZ BACK HLT Result: Input: Memory Location Data value 2051 1 2052 2 2053 3 2054 4 2055 5 2056 2057 2058 2059 Output: Memory Location Data value 2051 1 2052 2 2053 3 2054 4 2055 1    (overlapped data) 2056 2 2057 3 2058 4 2059 5

Assembly language program for transfer of data from one block of memory location to any other block of memory location (Non-Overlapping)

Program: MVI C,5 LXI H,2051 LXI D,2056 BACK: MOV A,M STAX D INX H INX D DCR C JNZ BACK HLT Result: Input: Memory Location Data value 2051 1 2052 2 2053 3 2054 4 2055 5 2056 2057 2058 2059 2060 Output: Memory Location Data value 2051 1 2052 2 2053 3 2054 4 2055 5    2056 1 2057 2 2058 3 2059 4 2060 5