0% found this document useful (0 votes)
300 views3 pages

(M2-Preparation) Msdos PDF

This document provides information about common DOS commands, symbols used in DOS, DEBUG commands for assembly language programming, and examples of short assembly language programs with expected outputs. It lists DOS commands for navigating directories, manipulating files, and getting directory listings. It describes symbols used in DOS like backslash, forward slash, question mark, and asterisk. It outlines DEBUG commands for writing, running, and debugging assembly programs as well as common registers and instructions. It provides sample assembly programs that output letters and numbers to demonstrate use of DEBUG commands.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
300 views3 pages

(M2-Preparation) Msdos PDF

This document provides information about common DOS commands, symbols used in DOS, DEBUG commands for assembly language programming, and examples of short assembly language programs with expected outputs. It lists DOS commands for navigating directories, manipulating files, and getting directory listings. It describes symbols used in DOS like backslash, forward slash, question mark, and asterisk. It outlines DEBUG commands for writing, running, and debugging assembly programs as well as common registers and instructions. It provides sample assembly programs that output letters and numbers to demonstrate use of DEBUG commands.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Module 2: Summative Assessment Preparation

Most command dos command

• 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

Different symbols function in DOS

• \ is the symbol used to indicate path or root directory


• / is the symbol used to indicate a switch in DOS commands
• ? is a symbol used for wild card that can specify only one character in DOS.
• * is a symbol used for wild card that can specify more than one character in DOS.

Most command debug/assembly language program statement command

• 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

• Simulate the given program below:

0123:0100 mov ah,02

0123:0102 mov dl,41

0123:0104 int 21

0123:0106 int 20

output? A

• Simulate the given program below:

0123:0100 mov ah,02

0123:0102 mov dl,50

0123:0104 int 21

0123:0106 int 20

output? P

• Simulate the given program below:

0123:0100 mov ah,02

0123:0102 mov dl,70

0123:0104 int 21

0123:0106 int 20

output? p

• Simulate the given program below:

0123:0100 mov ah,02

0123:0102 mov dl,32

0123:0104 int 21

0123:0108 mov dl,30


0123:010A int 21

0123:01C mov dl,32

0123:010E int 21

0123:0110 mov dl,30

0123:0112 int 21

0123:0114 int 20

output? 2020

• Simulate the given program below:

0123:0100 mov dl,32

0123:0102 int 21

0123:0104 mov dl,30

0123:0108 int 21

0123:010A mov dl,32

0123:010C int 21

0123:010E mov dl,30

0123:0110 int 21

0123:0112 int 20

output? no output

• Simulate the given program below:

0123:0100 mov ah,02

0123:0102 mov dl,32

0123:0104 int 21

0123:0108 mov dl,30

0123:010A int 21

0123:01C mov dl,32

0123:010E int 21

0123:0110 mv dl,30

0123:0112 int 21

0123:0114 int 20

output? ERROR

You might also like