in Education by
Write a program in 8086 to move hundred bytes of data from the offset address 3000H in the segment 4000H Select the correct answer from above options

1 Answer

0 votes
by
Explanation: 8086 program to transfer a block of bytes by using string instruction Problem – Write an assembly language program to transfer a block of bytes from one memory location to another memory location by using string instruction. Example – Example – In this example, the counter value stored in CX register is 4. The block of data which is stored from memory location starting from 501 to 504 offset is transferred to another memory location which is starting from 600 to 603 offset. Assumptions – The value of counter which tells the number of bytes to be transferred is stored at offset 500. The 8-bit data which have to be transfer is stored in continuous memory location starting from 501. The data is transferred to a continuous memory location starting from 600. The value of DS and ES is taken equal to 0000. the program starts from offset 400. CLD instruction is used to clear the directional flag, i.e., DF=0. Now, value of SI and DI will be increased. Algorithm – set the value of offset SI equal to 500. set the value of offset DI equal to 600. load the value 0000 into register AX. load the data of AX register into DS(data segment). load the data of AX register into ES(extra segment). load the data of offset SI into CL register and load value 00 into CH register. increment the value of SI by one. clear the directional flag so that data is read from lower memory to higher memory location. check the value of CX, if not equal to zero then repeat step 10 otherwise go to step 11. transfer the data from source memory location to destination memory location and decrease the value of CX by one. Stop.

Related questions

0 votes
    Write and run (using appropriate calling program) a near procedure in 8086 assembly language that checks if the input ... AL register. Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    Rewrite the following JAVA program segment using switch case.. char code; if(code=='B'||code=='b') System.out. ... now .plz help me . Select the correct answer from above options...
asked Dec 17, 2021 in Education by JackTerrance
0 votes
    write a program to evaluate the arithmetic statement. X=A-B+C*(D*E-F)/G+H*K a) Using a general ... zero -address operation instruction. Select the correct answer from above options...
asked Nov 30, 2021 in Education by JackTerrance
0 votes
    Write the short cut keys to move text in word document. 1. ctrl+A 2.Alt+m 3.ctrl+x ctrl+v 4. Ctrl+p ctrl+Q Select the correct answer from above options...
asked Dec 14, 2021 in Education by JackTerrance
0 votes
    Write a program in python to insert ten friends name in a list, then print 3rd, 5th and 9th value from the list (using data structure) Select the correct answer from above options...
asked Dec 14, 2021 in Education by JackTerrance
0 votes
    Function parameters that are passed to a CALEE are accessed as ______(where n: offset) Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
0 votes
    . What are the contents of memory locations 200, 201, 202, and 203 if the word 1234 is stored at offset 200 ... stored at offset 202? Select the correct answer from above options...
asked Dec 23, 2021 in Education by JackTerrance
0 votes
    a. State the number of bytes occupied by char and int data types. b. Differentiate between = and == ... implicit type conversion. Select the correct answer from above options...
asked Dec 6, 2021 in Education by JackTerrance
0 votes
    a. State the number of bytes occupied by char and int data types. b. Differentiate between = and == ... implicit type conversion. Select the correct answer from above options...
asked Dec 5, 2021 in Education by JackTerrance
0 votes
    a. State the number of bytes occupied by char and int data types. b. Differentiate between = and == ... implicit type conversion. Select the correct answer from above options...
asked Nov 26, 2021 in Education by JackTerrance
0 votes
    6. A primary key is a . of unique values. 7. Linking tables are created to facilitate DBMS uses the ... . among two tables. 8 Select the correct answer from above options...
asked Nov 27, 2021 in Education by JackTerrance
0 votes
    5. Write a program to read and store the following data in two different arrays. Using Binary Search Method search for ... 85, 72, 89 Select the correct answer from above options...
asked Dec 15, 2021 in Education by JackTerrance
0 votes
    is a device to increase a rich of a network signal applicant it over network segment Select the correct answer from above options...
asked Dec 22, 2021 in Education by JackTerrance
0 votes
    15 (a)...
asked Dec 2, 2021 in Education by JackTerrance
...