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

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

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

Electronics, Figure 1(a) shows a simple one-stage MOSFET amplifier. The inp...

Figure 1(a) shows a simple one-stage MOSFET amplifier. The input-output relationship is graphed in Figure 1(b), where the solid curve indicates operation in the saturated region an

Explain what is linker, Explain what is Linker? Linker: A huge progra...

Explain what is Linker? Linker: A huge program is divided in smaller programs termed as modules. A linker is a program that links smaller programs together to by a large prog

Power control - motor control , Power Control A chopper converts  fix...

Power Control A chopper converts  fixed  de input voltage to a controllable dc output voltage. It is  the single  stage dc to dc conversion device. It is a high  speed  on/ of

Explain the procedure of binary to hex conversion, Q. Explain the procedure...

Q. Explain the procedure of Binary to Hex Conversion? It is simple to convert from an integer binary number to hex. This is completed by: Break the binary number int

Distribution - salient features of nep, Distribution: This has been re...

Distribution: This has been recognized as the most critical segment of the electricity business. Here the NEP calls for proper restructuring of distribution utilities for achi

Find the per-unit voltage regulation, Q. A single-phase, 3-kVA, 220:110-V, ...

Q. A single-phase, 3-kVA, 220:110-V, 60-Hz transformer has a high-voltage winding resistance of 0.3 , a low-voltage winding resistance of 0.06 , a leakage reactance of 0.8  on i

3rd year electrical/electronics project, I`m a 3rd year electrical engineer...

I`m a 3rd year electrical engineering student studying in Canada, and there is a new course they added in my university for 3rd year students called Engineering Project. from the

Differentiate between n and p type semiconductors, Differentiate between n ...

Differentiate between n and p type semiconductors. n - Type semiconductor:- (i) If small amount of pentavalent impurity is added with, to a pure semiconductor giving a la

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