1. To begin working with Debug, type the following prompt in your computer: C:>Debug [Enter] What appeared after enter was pressed? What does this indicate? 2. You can now start typing the debug commands. Type -r [Enter] Note: All the contents of the internal registers(a memory or capable of storage) of the CPU are displayed. 3. Туре: -rbx [Enter]

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

SEE ATTACHED PHOTO FOR THE INSTRUCTIONS AND QUESTIONS NEED TO BE ANSWERED

1. To begin working with Debug, type the following prompt in your computer:
C:/>Debug [Enter]
What appeared after enter was pressed? What does this indicate?
2. You can now start typing the debug commands. Type
-r [Enter]
Note: All the contents of the internal registers(a memory or capable of storage) of the CPU are
displayed.
3. Туре:
-rbx [Enter]
Note: This instruction will only display the content of the BX
register and the Debug indicator changes from "-" to ":" When the prompt is
like this, it is possible to change the value of the register which was seen
by typing the new value and [Enter], or the old value can be left by pressing
[Enter] without typing any other value.
4. Туре
4 d 0200 or d 0200 0201 [Enter]
5. Туре
5 f0200 0205 41 [Enter]
What command will you use to view the changes you have made to the memory locations?
6. Туре
6 s 0200 0210 41 [Enter]
7. Туре
7 c 0200 0204 0205 [Enter]
What memory locations were not displayed? Why?
8. Туре
8 q [Enter]
This is done to quit the program.
Transcribed Image Text:1. To begin working with Debug, type the following prompt in your computer: C:/>Debug [Enter] What appeared after enter was pressed? What does this indicate? 2. You can now start typing the debug commands. Type -r [Enter] Note: All the contents of the internal registers(a memory or capable of storage) of the CPU are displayed. 3. Туре: -rbx [Enter] Note: This instruction will only display the content of the BX register and the Debug indicator changes from "-" to ":" When the prompt is like this, it is possible to change the value of the register which was seen by typing the new value and [Enter], or the old value can be left by pressing [Enter] without typing any other value. 4. Туре 4 d 0200 or d 0200 0201 [Enter] 5. Туре 5 f0200 0205 41 [Enter] What command will you use to view the changes you have made to the memory locations? 6. Туре 6 s 0200 0210 41 [Enter] 7. Туре 7 c 0200 0204 0205 [Enter] What memory locations were not displayed? Why? 8. Туре 8 q [Enter] This is done to quit the program.
I.
Objectives
• To orient oneself with debug and its commands
II.
Overview
The debug program on the DOS disk is useful for writing very small programs. To create a
program in assembler two options exist, the first one is to use the Assembler, and the second
one is to use the debugger - on this first section we will use this last one since it is found in
any PC with the MS-DOS, which makes it available to any user who has access to a machine
with these characteristics.
Debug can only create files with a .COM extension, and because of the characteristics of
these kinds of programs they cannot be larger that 64 kb, and they also must start with
displacement, offset, or 0100H memory direction inside the specific segment.
Debug provides a set of commands that lets you perform a number of useful operations:
Debug Commands
Meaning
|Assemble symbolic instructions into machine code
Display the contents of an area of memory
Enter data into memory, beginning at a specific location
Run the executable program in memory
Name a program
Proceed, or execute a set of related instructions
Quit the debug program
Display the contents of one or more registers
|Trace the contents of one instruction
|Unassemble machine code into symbolic code
Write a program onto disk
Fills a range of memory locations with values in a list
Searches a range of memory locations for characters in a list
Compares the contents of two blocks of memory
A.
D
G
Q
R
U
W
F
Transcribed Image Text:I. Objectives • To orient oneself with debug and its commands II. Overview The debug program on the DOS disk is useful for writing very small programs. To create a program in assembler two options exist, the first one is to use the Assembler, and the second one is to use the debugger - on this first section we will use this last one since it is found in any PC with the MS-DOS, which makes it available to any user who has access to a machine with these characteristics. Debug can only create files with a .COM extension, and because of the characteristics of these kinds of programs they cannot be larger that 64 kb, and they also must start with displacement, offset, or 0100H memory direction inside the specific segment. Debug provides a set of commands that lets you perform a number of useful operations: Debug Commands Meaning |Assemble symbolic instructions into machine code Display the contents of an area of memory Enter data into memory, beginning at a specific location Run the executable program in memory Name a program Proceed, or execute a set of related instructions Quit the debug program Display the contents of one or more registers |Trace the contents of one instruction |Unassemble machine code into symbolic code Write a program onto disk Fills a range of memory locations with values in a list Searches a range of memory locations for characters in a list Compares the contents of two blocks of memory A. D G Q R U W F
Expert Solution
steps

Step by step

Solved in 4 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY