Module 2.1: System Operation

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/38

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 12:45 PM on 8/13/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

39 Terms

1
New cards

Debug

A software that is classified as debugger which is used for testing and debugging executable programs.

2
New cards

Hexadecimal Format

Debug displays all program code and data in ________ and any data that you enter into memory must also in hex form.

3
New cards

CLS
CD
DIR
COPY
DEL
REN
MD
RD

Common Disk Operating System Commands

4
New cards

CL

clear

5
New cards

CD

change dir

6
New cards

DIR

Directory

7
New cards

COPY

copy

8
New cards

DEL

delete

9
New cards

REN

rename

10
New cards

MD

make directory

11
New cards

RD

remove directory

12
New cards

65,280 bytes or less

DEBUG was originally designed to work with .COM programs having a maximum size of only ___________.

13
New cards

FF hex

The subtraction of 256 bytes is necessary since DEBUG often uses the area from offset 00 through _______.

14
New cards

It is free.
It is universally available.
It is simple to use.
It requires relatively little memory.

Advantages of Debug.

15
New cards

Q
H
R
E
D
A
T
G
U
N
W

Debug Commands

16
New cards

Q (Quit)

Finishes the Debug session and exits back to DOS environment

17
New cards

H (Hexarithmetic)

Shows the sum and difference of two 4-bit hexadecimal numbers, coded as H <hex value> <hex value>

18
New cards

R (Register)

Allows you to display all registers and their values.  It also shows the next instruction and permits you to change the value of a particular register.

19
New cards

E (Enter)

Enables you to key in data or machine instructions into memory beginning at a specific location address.

20
New cards

D (Display or Dump)

Displays the content of a portion memory in hex and ASCII forms starting with the given address.

21
New cards

A (Assemble)

Allows you to create program in mnemonic or symbolic code.  It also translates this assembly source statements that you create into machine code.

22
New cards

T (Trace) 

Runs the program in a single-step mode.  It also displays the new values  of the registers and the next instructions to be executed.

23
New cards

G (Go)

Runs the program as a whole in memory and displays the output.

24
New cards

U (Unassemble)

Lists all the instructions contained in the program beginning at the given address.  You can also specify the last address location.

25
New cards

N (Name)

Gives a name to your program, coded as N <path><filename>.  The base name of the filename must be eight characters long and the extension name is .COM

26
New cards

W (Write)

Saves the program onto the disk storage.

27
New cards

<segment>:<offset>

One of the rules of Debug Commands you should specify segments and offsets with a colon, in the form __________.

28
New cards

Starting Debug

Key in the word debug and press enter.  A hyphen (-) appears on the screen, that is the DEBUG prompt.  DEBUG is now ready to accept commands.

29
New cards

Quitting and Closing Debug

To close Debug and go back to DOS environment: type Q and press ENTER key.

30
New cards

MOV
ADD
SUB
MUL
DIV
INC
DEC
LOOP

Basic Assembly Instructions Used in Debug

31
New cards

MOV (Move Data)

It copies and transfers data between two registers, or between an immediate data to a register.

32
New cards

ADD (Add Data)

It is used to get the sum of two registers or a register and an immediate data, and stores the result to the left most register.

33
New cards

SUB (Subtract Data)

It is used to get the difference of two registers or a register and an immediate data, and stores the result to the left most register.

34
New cards

MUL (Multiply Data)

It is used to get the product of the given register and AX register, and stores the result to AX register.  If the product is greater than 16 bits, the overflow is stored in DX register.

35
New cards

DIV (Divide Data)

It is used to divide the value of a given register and AX register, and stores the quotient to AX and the remainder to DX registers respectively.

36
New cards

INC (Increment by one)

It is used to increase the value of the register by one (1).

37
New cards

DEC (Decrement by one)

The opposite of INC, instead of increasing, it decreases the value of the register by one (1).

38
New cards

LOOP (Loop Until Complete)

It controls the execution of a program segment in a specified number of times. 

39
New cards

CX

The ____ register should contain a count value before starting the loop and automatically decrements by one (1).  If CX is not equal to zero (0), it transfers to its operand address which points to the start of the loop; otherwise it drops through to the next instruction.