Working with various instructions using debug, Electrical Engineering

Assignment Help:

The purpose of this experiment is to introduce you to a powerful 80x86 assembly/machine language utility called DEBUG.

Preparing Your DEBUG Environment

If you have an older version of Windows (95, or 98) or Windows XP 32-bit, or Windows Vista 32-bit, or Windows 7 32-bit, then the DEBUG utility program is built into the operating system. You can prove this to yourself by opening a Command Prompt window (Start, Run, type debug into the run field, and click OK, or just click the Command Prompt icon). Once inside the Command Prompt window, type debug and press Enter. If you get an error then DEBUG does not exist on your Windows system.

Start Menu showing Command Prompt icon

If you have 64-bit versions of Windows XP, Vista, 7, or 8, then you need to install some special software to create a DEBUG environment.

The special software you need (DosBox) as well as the actual DEBUG program are saved in the following ZIP file:

The debughelp2.doc document explains how to unzip the files and get DEBUG running through DosBox.

Procedure

1. Read Appendix D, pages 560 through 575. Perform all the example DEBUG command exercises that are presented.

2. Here is the DEBUG program you need to enter and execute:

a
mov ax,0
mov bx,1234
mov cx,5678
mov dx,9abc
and ax,bx
or ax,cx
xor ax,dx
not ax
r
t 8
q

3. Run DEBUG and enter the program and commands line by line. The blank line after the not ax instruction is needed to get out of the "a" command.

4. Examine the DEBUG output. The final value in AX should be 333B. This would be a good time to do an Alt Print Screen to capture a screen shot of the DEBUG window to paste into your lab writeup.

5. Quit DEBUG and then run it again.

6. After entering the "a" command, change the first instruction from

mov ax,0

to

mov ax,????

where ???? is your 4-digit birth date. For example, if you were born on July 15, your instruction would be mov ax,0715

Then enter the rest of the instructions and commands.

7. Use DEBUG to run the modified program. Do another Alt Print Screen to grab the new DEBUG results for your lab writeup.


Related Discussions:- Working with various instructions using debug

Engineering drawing, connect two given points A and B by a parabolic curve ...

connect two given points A and B by a parabolic curve when OA=60mm,OB=80mm and angle AOB=110 degree

What is memory paging, What is memory paging? The memory paging mechan...

What is memory paging? The memory paging mechanism located inside the 80386 and above permits any physical memory location to be assigned to some linear address.

Phase shifter, Hi, I just finish writing my project literature review and ...

Hi, I just finish writing my project literature review and my supervisory asked me to add one part. This part is about Phase Shift. How phase shifters work? In Particular How the

Explain lda and daa instructions, Explain LDA, STA and DAA instructions ...

Explain LDA, STA and DAA instructions LDA copies the data byte into accumulator from the memory location particular by the 16-bit address. STA copies the data byte from the acc

Explain eddy currents, Explain Eddy currents. Eddy currents: Magnetic m...

Explain Eddy currents. Eddy currents: Magnetic materials placed as in alternating magnetic fields have eddy currents also induced in them. It is because the material is subject

Why ce configuration is widely used in amplifier circuit, Q . Why CE Config...

Q . Why CE Configuration is widely used in amplifier circuit? The main utility of a transistor lies in its ability to amplify weak signals. The transistor alone cannot perform

Explain standby mode of operation in spc organization, Q. Explain Standby m...

Q. Explain Standby mode of operation in SPC organization? Standby mode of operation is the simplest of dual processor configuration operations. Generally one processor is activ

DC motor & encoder, If a high resolution emcoder is used for position contr...

If a high resolution emcoder is used for position control, will the number of pole count in the DC motor be matter? What is the requirement for the DC motor in order to work with h

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd