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

Technical loss reduction - power supply, Technical Loss Reduction - Power S...

Technical Loss Reduction - Power Supply 1. Technical loss reduction could be achieved through several measures such as network reconfiguration, load balancing, network recondu

Calculate terminal voltage, A permanent magnet DC motor is being considered...

A permanent magnet DC motor is being considered for use as a drive motor for a vehicle. The motor is known to have the following properties No load speed @ 100 V = 2000 rpm torq

What is an amplifier, Q. What is an amplifier? What are the various types o...

Q. What is an amplifier? What are the various types of amplifiers? AMPLIFIER: A circuit that increases the amplitude of the given input signal is an amplifier. A small a.c. sig

Find resistance when the bridge is balanced, Q. Consider the bridge circuit...

Q. Consider the bridge circuit given in Figure with R 1 = 24 k, R 2 = 48 k, and R 3 = 10 k. Find R when the bridge is balanced with V = 0.

Get bode plots of magnitude and phase of transfer function, Develop a PSpic...

Develop a PSpice program and use PROBE to obtain Bode plots of the magnitude and phase of the transfer function ¯V out / ¯V in for the high-pass ?lter circuit shown in Figure (a)

Types of sweeps, There are four basic types of sweeps: (a)             ...

There are four basic types of sweeps: (a)                                Free Running or Recurrent Sweep: in the free running or recurrent sweep, the sawtooth waveform is re

Advantages of subscriber loops signalling, Q. Advantages of subscriber loop...

Q. Advantages of subscriber loops signalling? (i) Information can be exchange between processors much more faster than when channel associated signalling is used. (ii) As a

Find the open-circuit voltage amplification of the circuit, (a) Figure show...

(a) Figure shows a circuit containing an amplifier block. Find the open-circuit voltage amplification of the circuit. (b) Let the output terminals be connected to a load resista

Sensor selection, Submit a brief report on the selection of two commerciall...

Submit a brief report on the selection of two commercially available sensors for the following: • Research and recommend a sensor for a real full size conveyor system of approxima

Multiplexer, design a 32:1 multiplexer using two 16:1 multiplexer

design a 32:1 multiplexer using two 16:1 multiplexer

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