TMA1271 - Introduction To Machine Architecture Trimester 3 2009/2010 Programming Exercises
TMA1271 - Introduction To Machine Architecture Trimester 3 2009/2010 Programming Exercises
TMA1271 - Introduction To Machine Architecture Trimester 3 2009/2010 Programming Exercises
RK/SA 1
TMA1271 Introduction to Machine Architecture Programming Exercise I
PROGRAMMING EXERCISE I
1. a. Specify the register contents and the flag status as the following
instructions are executed.
XRA A
MVI B, FFH
INR B
DCR A
ADD B
SUI 86H
ANA C
RST 1
Verify your results by executing the above instruction in the given XPO 85
kit in a single step mode and examining various registers after each step.
b. Write instructions to
i. Clear accumulator
ii. Load the data byte 8EH in register D and F7H in register E.
iii. Mask the high-order4 bits from both the data bytes
iv. Exclusive OR the masked bytes
v. Store the result in a memory location
RK/SA 2
TMA1271 Introduction to Machine Architecture Programming Exercise I
3. a. The following block of data is stored in the memory locations from
6000H to 600FH. Write 8085 Assembly Language Program to transfer
the data to the locations 7000H to 7000FH
----- ------
(6165) ---------------------------(6265H)
RK/SA 3