(M2-Preparation) Msdos PDF
(M2-Preparation) Msdos PDF
• dir is an internal DOS command used to display the list of files in your current working directory.
• md is an internal DOS command used to create a subdirectory.
• cd is an internal DOS command used to change directory.
• rd is an internal DOS command used to remove a directory.
• dir is a DOS command used to display all files in your current working directory.
• dir *.* is a DOS command used to display all files in your current working directory.
• cd.. is a dos command that would let you go back to you previous directory.
• cd\ is a dos command that would let you go back to the root directory.
• Ren is a dos command used to rename a file.
• Move is a dos command used to change the name of a subdirectory.
• copy is a dos command that lets you copy one or more files to a location you specify.
• Del is a command used to delete one or more files to a location you specify
• Tree is a dos command that lets you display the directory structure in your current working directory.
• Tree/f is a dos command that lets you display the directory structure in your current working directory
and the files inside a subdirectory.
• /w is the switch used in the dir command to display the list of directory in wide format form
• DEBUG is a special DOS command that provides a single-step mode, which allows you to execute a
program one instruction at a time, so that you can view the effect of each instruction on memory
locations and registers.
• Com is the extension name for assembly language program created using DEBUG command.
• - is the symbol used as prompt for DEBUG program.
• R It is a DEBUG command that lets you view the current content of the cpu registers.
• a is DEBUG command that let's you start coding an assembly language program.
• logical address is the only memory address visible to the user when writing an assembly language
program using DEBUG command.
• mov ah,02 & int 21h is the service number used to display a single character store in registered dl.
• hexadecimal is the only number system that is recognized and accepted in DEBUG.
• AX is a general purpose register used as accumulator.
• CX is a general purpose register used for counters.
• DX is a general purpose register used as date register.
• Int 20h is an instruction set that is used to terminate an assembly language program properly.
• N is a debug command that lets you give a filename to a program.
• rcx is a debug command that lets you assign the number of byte or size of the memory to store your
program.
• w is a debug command that lets you write or store the program on the cpu memory.
• G is a debug command that lets you execute an assembly language program.
• q is a debug command that let you exit from the debug function and go back the the DOS prompt.
• U is a debug command that lets you view the code written in assembly language.
• t is a debug command that lets you execute the program line per line and view the current content of the
cpu registers.
• E is a debug command that lets you display and allows modification of bytes in a sequential manner.
• 41h is the hexadecimal value of (capital letter) A.
• 61h is the hexadecimal value of (small letter) a.
Program Simulation
0123:0104 int 21
0123:0106 int 20
output? A
0123:0104 int 21
0123:0106 int 20
output? P
0123:0104 int 21
0123:0106 int 20
output? p
0123:0104 int 21
0123:010E int 21
0123:0112 int 21
0123:0114 int 20
output? 2020
0123:0102 int 21
0123:0108 int 21
0123:010C int 21
0123:0110 int 21
0123:0112 int 20
output? no output
0123:0104 int 21
0123:010A int 21
0123:010E int 21
0123:0110 mv dl,30
0123:0112 int 21
0123:0114 int 20
output? ERROR