Access over 20 million homework & study documents

Machine Architecture

Content type
User Generated
Type
Study Guide
Rating
Showing Page:
1/3
TMA1271 Introduction to Machine Architecture Programming Exercise I
RK/SA
1
TMA1271 - Introduction to Machine Architecture
Trimester 3 2009/2010
Programming Exercises
Objectives of tutorial 6:
To have familiarity with XPO85 kit/ Simulator
Different software commands of Simulator
Software details of Simulator
How to write and execute assembly language programs based
on Intel 8085 microprocessor using this Simulator
Write and Execute assembly language programs given in
programming Exercise I
Initially, concentrate on Substitute memory, register, GoTo
commands in order to enter and execute simple programs (pages 14,15,16 of
manual and also see pages 25,26,27,29,30 of workbook manual)
Have the understanding of scratch Pad RAM and Battery Back up
RAM differences and locations.(Chapter 2)
Write, code and execute simple assembly language programs
using the above commands at the specific memory locations.
Expand your understanding on other commands such as Move,
Compare, Blank Check, Search etc.(Chapter 3)
Have the understanding of monitor utilities your kit is capable of
in order to use them appropriately in your own program.(Chapter 10)
Understand and execute the standard programs, which are
found in chapter 12.

Sign up to view the full document!

lock_open Sign Up
Showing Page:
2/3
TMA1271 Introduction to Machine Architecture Programming Exercise I
RK/SA
2
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
Verify your theoretical result by executing the program in single
step mode.
2. a. Write 8085 ALP to find the
(i) 1’s complement and 2’s complement of 8 bit number in location
‘X’ and store the 8 bit results in two consecutive memory locations.
(ii) 1’s complement and 2’s complement of a 16-bit number in
locations ‘X’ and ‘X+1’ (lower order first followed by higher order) and
store the 16 bit result in consecutive memory locations.
b. Write 8085 ALP to
(i) Display the contents of Stack Pointer register at two consecutive
memory locations ‘X’ and ‘X+1’ (lower order followed by higher
order)
(ii) Perform multiplication by 2 and division by 2 assuming D7 and
D0 bits are not 1.

Sign up to view the full document!

lock_open Sign Up
Showing Page:
3/3

Sign up to view the full document!

lock_open Sign Up
Unformatted Attachment Preview
TMA1271 - Introduction to Machine Architecture Trimester 3 2009/2010 Programming Exercises Objectives of tutorial 6: To have familiarity with XPO85 kit/ Simulator Different software commands of Simulator Software details of Simulator How to write and execute assembly language programs based on Intel 8085 microprocessor using this Simulator Write and Execute assembly language programs given in programming Exercise I Initially, concentrate on Substitute memory, register, GoTo commands in order to enter and execute simple programs (pages 14,15,16 of manual and also see pages 25,26,27,29,30 of workbook manual) Have the understanding of scratch Pad RAM and Battery Back up RAM differences and locations.(Chapter 2) Write, code and execute simple assembly language programs using the above commands at the specific memory location ...
Purchase document to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Anonymous
I was stuck on this subject and a friend recommended Studypool. I'm so glad I checked it out!

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Similar Documents