Micro Lab File
Micro Lab File
COE-410
SUBMITTED BY:
INDEX :
1 2 3 4 5 6 7 8 9
EXPLORE THE VARIOUS FEATURES OF DEBUG COMMAND. USE A SAMPLE PROGRAM TO EXPLAIN THE FEATURES OF DEBUG COMMAND. DISPLAY THE ASCII CHARACTER SET. CONVERT A NUMBER FROM ASCII CHARACTER SET TO A PACKED BCD NUMBER. CONVERT A PACKED BCD NUMBER INTO ASCII CHARACTERS. FIND ADDITION OF TWO BCD NUMBERS. FIND ADDITION OF N BCD NUMBERS. FIND ADDITION OF TWO UNPACKED BCD NUMBERS. FIND ADDITION OF N 16-BIT BCD NUMBERS.
USING DEBUG TO EXECUTE 80X86 PROGRAMS: DEBUG is a utility program that allows a user to load an 80x 86 programs in to memory and execute it step by step. DEBUG displays the contents of all processor registers after each instruction executes, allowing user to determine if the code is performing the desired task. DEBUG only displays the 16-bit portion of the general purpose registers. Code view is capable of displaying the entire 32 bits. DEBUG is a very useful debugging tool. We will use DEBUG to step through number of simple programs, gaining familiarity with DEBUG commands as we do. DEBUG contains commands that can display and modify memory, assemble instructions, disassemble code already placed into memory, trace through single or multiple instructions, load registers with data, and do much more. DEBUG loads into memory like any other program, in the fist available slot. The memory space used by DEBUG for the user program begins after the end of DEBUG code. If an .EXE or. COM.
EXAMPLE OF DEBUG
0100 MOV AX, 24B6 0103 MOV DI, 85C2 0106 MOV DX, 5F93 0109 MOV SP, 1236 010C PUSH AX
010D PUSH DI 010E INT 3 DISPLAY THE STACK CONTENTS AFTER EXECUTION: -D 1230 123F