You are on page 1of 1

Computer Architecture Lab: 8.4.

2010 Lab exercise 2: Answer all the questions: Produce the source code with the flow chart. Show the necessary snap shot of the simulator as apart of the solution for each questions. 1) A Data byte 28H is stored in Register B and data byte 97H is stored in the Accumulator. Show the contents of registers B, C, and the Accumulator after the execution of the following two instructions: a. MOV A, B b. MOV C, A Write Assembly Language (AL) code to add the following two Hex numbers. Both numbers should be saved for future use and the sum should be saved in the Accumulator. Numbers are: A2H and 18H Write the assembly language for 8085 microprocessor for the following problems. a. Add two different integers in decimal and store it in a specific memory location b. Subtract two different integers in decimal and store it in a specific memory location c. Use two registers to assign two bytes number, which is a 16 bit number. Add another 16 bit number. Finally store the result in a specific memory location. d. Use two registers to assign two bytes number, which is a 16 bit number. Subtract it with another 16 bit number. Finally store the result in a specific memory location. e. Find the l's complement of the number stored at memory location 2010 and store the complemented number at memory location 2012. f. Find the 2's complement of the number stored at memory location 2010 and store the complemented number at memory location 2012.

2)

3)

You might also like