Sie sind auf Seite 1von 10

DE LA SALLE LIPA

COLLEGE OF INFORMATION TECHNOLOGY AND ENGINEERING


ELECTRONICS AND COMMUNICATIONS ENGINEERING DEPARTMENT
MICROSYS– MICROPROCESSOR SYSTEM MANUAL

I. PRE-LABORATORY

Help Command

R command
DE LA SALLE LIPA
COLLEGE OF INFORMATION TECHNOLOGY AND ENGINEERING
ELECTRONICS AND COMMUNICATIONS ENGINEERING DEPARTMENT
MICROSYS– MICROPROCESSOR SYSTEM MANUAL

D command

E command
DE LA SALLE LIPA
COLLEGE OF INFORMATION TECHNOLOGY AND ENGINEERING
ELECTRONICS AND COMMUNICATIONS ENGINEERING DEPARTMENT
MICROSYS– MICROPROCESSOR SYSTEM MANUAL

F Command

M Command

C Command
DE LA SALLE LIPA
COLLEGE OF INFORMATION TECHNOLOGY AND ENGINEERING
ELECTRONICS AND COMMUNICATIONS ENGINEERING DEPARTMENT
MICROSYS– MICROPROCESSOR SYSTEM MANUAL

S Command

U Command

A Command
DE LA SALLE LIPA
COLLEGE OF INFORMATION TECHNOLOGY AND ENGINEERING
ELECTRONICS AND COMMUNICATIONS ENGINEERING DEPARTMENT
MICROSYS– MICROPROCESSOR SYSTEM MANUAL

G Command

T Command
DE LA SALLE LIPA
COLLEGE OF INFORMATION TECHNOLOGY AND ENGINEERING
ELECTRONICS AND COMMUNICATIONS ENGINEERING DEPARTMENT
MICROSYS– MICROPROCESSOR SYSTEM MANUAL
DE LA SALLE LIPA
COLLEGE OF INFORMATION TECHNOLOGY AND ENGINEERING
ELECTRONICS AND COMMUNICATIONS ENGINEERING DEPARTMENT
MICROSYS– MICROPROCESSOR SYSTEM MANUAL

II. LABORATORY

1. Issue a dump command that will display the 64 bytes of memory locations that are located at
offsets 0200H through 023FH in the current data segment. Observe the memory data displayed
to the right of the hexadecimal data

2. Execute the command below:

E DS:0500 “ My name is : ( write your complete name )”

3. Repeat Step 1 and observe the memory data displayed to the right.

4. Initialize all storage locations in the block of memory from DS:0200 through DS:021F with the
value 22H and the block of storage locations from DS:0220 through DS:023F with the value 44H.
Verify that the contents of these ranges of memory are correctly modified.

5. Assume that the program listed below is to be stored in the memory starting at address
CS:0100. Assemble the program below.
MOV AX, 0500
MOV DS, AX
MOV SI, 0100
MOV DI, 0120
MOV CX, 0020
MOV AL, [SI]
MOV [DI], AL
INC SI
DE LA SALLE LIPA
COLLEGE OF INFORMATION TECHNOLOGY AND ENGINEERING
ELECTRONICS AND COMMUNICATIONS ENGINEERING DEPARTMENT
MICROSYS– MICROPROCESSOR SYSTEM MANUAL

INC DI
DEC CX
JNZ 050E
NOP

6. Execute the program

7. Trace the program and observe the contents of the registers and the memory locations used.
DE LA SALLE LIPA
COLLEGE OF INFORMATION TECHNOLOGY AND ENGINEERING
ELECTRONICS AND COMMUNICATIONS ENGINEERING DEPARTMENT
MICROSYS– MICROPROCESSOR SYSTEM MANUAL
DE LA SALLE LIPA
COLLEGE OF INFORMATION TECHNOLOGY AND ENGINEERING
ELECTRONICS AND COMMUNICATIONS ENGINEERING DEPARTMENT
MICROSYS– MICROPROCESSOR SYSTEM MANUAL

8. Show the sequence of keyboard entries needed to enter the following machine code program
into the memory of the PC.
B8 20 10 8E D8 BE 00 01 BF 20 01 B9
10 00 8A 24 88 25 46 47 49 75 F7 90
The program is to be loaded into the memory starting at address CS:100.

9. Unassemble the program and show the output.

CONCLUSION:
After the experiment, the students were able to familiarize themselves with the Debug
environment, with the use of the DOSBOX and the commands that may be used in working with this
environment. Some of the commands that were noted in the experiment was the R command or Register,
D command or Dump, E command or Enter, F command or Fill, M command or Move, C command or
Compare, S command or search, U command or Unassemble, A command or Assemble, G command or
Go and T command or Trace. These are not case sensitive, however, one must still be mindful in entering
the right command because it may cause the DOSBOX to crash.
An assembly program was also created by the student in the debug that assembles or converts
the program to a machine code. The A command was used in this part followed by the starting address in
which the first instruction will be applied. This program will be executed using the G command that will
automatically show the new contents of the register. However, the T command may also be used to be
able to assess the step-by-step implementation of the program.

Das könnte Ihnen auch gefallen