{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

x86-CrefresherLab-F11

x86-CrefresherLab-F11 - x86 and C refresher Lab Background...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
x86 and C refresher Lab Background: The x86 is a very widely used microprocessor, it is in Windows and Macintosh personal computers. It is important to be familiar with Intel Architecture, IA. In this lab we will be come familiar with the Intel Architecture using debuggers, assemblers, un-assemblers, and hand assembly. These tools will allow us to enter programs, assemble, execute, debug, and modify programs. Tools and techniques develop in this lab will prepare for using microcontrollers in later labs. C programs in this lab are to refresh C programming knowledge and explore C programming used in microprocessors. Also, this x86 – C refresher Lab will be preparation for using the C programming language to program microcontrollers. Objectives: To be come familiar with how microprocessors operate. To be come familiar with programming microprocessors using machine language, assembly language, and C language. To be come proficient in the use microprocessor debugging tools and techniques. To be come familiar with assemblers and their use in programming microprocessors. To understand how to hand assemble instructions for microprocessors. To understand the program development cycle (program-test-debug- modify-test-debug-repeat until done). To use tracing charts, break points, to verify and debug programs. To develop a program from a flow chart. To write documented code with flow chart and commented code.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
EEE174 CpE185 Laboratory S Spring 201 2 1 X86 Lab Part 1: Introduction to Debug and C refresher Intro to DEBUG : Debug Monitor, Machine Language, and Assembly Language, Machine Instructions: MOV, SUB, ADD, JGE, INT 20h, and Debug Commands: d, e, u, r, and t Introduction: In this section, you will begin familiarizing yourself with the laboratory equipment. You will load and run a program in the DEBUG environment. You will then describe in detail the nature of this program and write a laboratory report based on your findings. The procedure for this experiment is presented below. 1. Examine the Virtual Machine (link to file on Voyager to run on a computer outside of the lab: \\voyager\Lab\EEE-CPE\Lab_VMs). To get to DEBUG: Click on “ Start ”. On the pull down menu select Programs ”. On the next menu select “ MS-DOS Prompt ” or “ Command Prompt ”. You should get the DOS prompt line “ C:\WINDOWS> ”. Type “ DEBUG ” on the DOS prompt line, and the Debug prompt “-“ should appear. Type in a “ ? ” for a listing of the DEBUG commands you can enter. 2. Use the DEBUG “ dump ” command (“ d ”) to display the contents of the memory locations. Enter the following three commands noting their effect. a). d 0100 b). d 0100 0110 c). d 0100 0200 Describe and discuss the features of the display, such as the number of data blocks per row displayed for each of the above commands, the number system used, number of bits/byte, and the addressing scheme.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}