explain Debug program in assembly language , Basic Computer Science

To make a program in assembler two choices exist, the earliest one is to use the TASM or Turbo Assembler, of Borland, and the next one is to use the debugger, generally we use this last one since it is found in any PC with the MS-DOS, which creates it available to any user who has access to a machine with these features.
Debug can only make files with a .COM extension, and because of the features of these kinds of programs they cannot be larger than 64 kb, and they also must begin with displacement, offset, or 0100H memory direction within the specific segment.
Debug gives a set of commands that lets you perform a number of helpful
operations:
A Assemble symbolic instructions into machine code
D Display the contents of an area of memory
E Enter data into memory, beginning at a specific location

R Display the contents of one or more registers
G Run the executable program in memory
N Name a program
P Proceed, or execute a set of related instructions
Q Quit the debug program
T Trace the contents of one instruction
U Unassembled machine code into symbolic code
W Write a program onto disk
It is achievable to visualize the values of the internal registers of the CPU using the Debug program. To start working with Debug, kind the following prompt in your computer:
C :/> Debug [Enter]
On the next line a dash will come out, this is the indicator of Debug, at this instant the instructions of Debug can be introduced using command as follows:
-r [Enter]
AX=0000 BX=0000 CX=0000 DX=0000 SP=FFEE BP=0000 SI=0000 DI=0000
DS=0D62 ES=0D62 SS=0D62 CS=0D62 IP=0100 NV EI PL NZ NA PO NC
0D62:0100 2E CS:
0D62:0101 803ED3DF00 CMP BYTE PTR [DFD3],00 CS:DFD3=03
The complete content of the internal registers of the CPU are displayed; an
alternative of viewing them is to use the "r" command by means of as a parameter
the name of the register whose value wants to be seen. for instance:
-rbx
BX 0000
:
This instruction will only display the content of the BX register and the Debug indicator changes from "-" to ":"
Posted Date: 5/4/2012 3:56:38 AM | Location : United States







Related Discussions:- explain Debug program in assembly language , Assignment Help, Ask Question on explain Debug program in assembly language , Get Answer, Expert's Help, explain Debug program in assembly language Discussions

Write discussion on explain Debug program in assembly language
Your posts are moderated
Related Questions
Previous to we can perform writing to the disk it is essential to define the data transfer region using for this end the 1AH function of the 21H interruption. The 1AH function does

Frequency and Bandwidth: Let us try to understand a little about how information is transmitted. The information may be in the form of sound (human voice, music) or it may be

Network Control, Engineering and Management Network control in this sense involves traffic management, and the engineering of the networks to support varying traffic loads. In

PRINCIPAL STRUCTURES IN FLOW CHARTING Structured programing calls for the usage of four principal structures to help simplify the program. They are:     Sequential contro

Question 1 With an example, illustrate the concept of extern variable Question 2 What is the difference between pointer variable and simple variable? Question 3 Give the


Number data types store numeric values. They are an immutable data type, which means that changing the value of a number data type results in a newly allocated object. Number objec

what is operator and operator associatively

Question 1 What is an operating system? Explain its functions Question 2 Discuss round-robin scheduling Question 3 Discuss on segmentation Question 4 What are the s

Question 1 Elaborate the various steps in performing a Mail Merge. Execute one mail merge operation for sending invitation for a conference which is being conducted in your organi