Assembler






DOS EXE2BIN.
.EXE .COM.
EXE2BIN .
DEBUG,
.COM.
 
. 5.18 ,
. ,
, -
: " ".
INT 21H 9 DOS.
Microsoft (R) Macro Assembler Version 5.00 1/1/80 04:02:33
. 5.18 .EXE .COM Page 1-1
 
 
PAGE ,132
TITLE . 5.18 .EXE .COM
0000 CODE SEGMENT
ASSUME CS:CODE,DS:CODE
0100 ORG 100H
 
0100 8D 16 010A R LEA DX, MESSAGE
0104 B4 09 MOV AH, 9H ;
0106 CD 21 INT 21H ;
0108 CD 20 INT 20H ;
 
010A 9D E2 A0 20 AF E0 AE MESSAGE DB ' - ', 10, 13, '$'
A3 E0 A0 AC AC A0 20
2D 20 E2 A5 E1 E2 0A
0D 24
0121 CODE ENDS
END
 
. 5.18 .EXE .COM
 
,
.COM. ORG 100H,
.
,
, .COM.
 

. DEBUG
.EXE .COM.
, DEBUG
.EXE. . 5.19 ,
. DEBUG
.
FIG5=18.COM,
DEBUG. N
. L
. DEBUG,
, N L.
, , ,
, 400H.
M 400H 100H.
, 1000H, ,
.
.COM .
, , CX,
.
, DEBUG,
CX. .COM
, .EXE,
B>A:ASM FIG5_18,,,;
The IBM Personal Computer Assembler
Version 1.00 (c)Copyright IBM Corp 1981
 
Warnings Severe
Errors Errors
0 0
 
B>A:LINK FIG5_18,,,;
Ibm Personal Computer Linker
Version 1.10 (C)Copyright IBM Corp 1982
 
Warning: No STACK segment
There was 1 error detected.
 
B>RENAME FIGS5_18.EXE FIGS5_18.COM
 
B>A:DEBUG
-NFIGS_18.COM
-L
-M 400 1000 100
 
-U100 10F
 
06D7:0100 BA091 MOV DX,0109
06D7:0103 B409 MOV AH,09
06D7:0105 CD21 INT 21
06D7:0107 CD20 INT 20
06D7:0109 54 PUSH SP
06D7:010A 68 DB 68
06D7:010B 69 DB 69
06D7:010C 7320 JNC 012E
06D7:010E 69 DB 69
06D7:010F 7320 JNC 0131
 
-D100
 
06D7:0100 BA 09 01 B4 09 CD 21 CD-20 54 68 69 73 20 69 73 :..4.M!M' This is
06D7:0110 20 61 20 74 65 73 74 DA-0D 24 00 00 00 00 00 00 a test..$.......
06D7:0120 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
06D7:0130 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
06D7:0140 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
06D7:0150 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
06D7:0160 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
06D7:0170 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
 
-RCX
CX 0380
:120
 
-W
 
Writing 0120 bytes
-Q 
. 5.19 .EXE .COM ()
>BDEBUG FIG5_18.COM
-R
 
AX=0000 BX=0000 CX=0120 DX=0000 SP=FFF0 BP=0000 SI=0000 DI=0000
DS=04B5 ES=04B5 SS=04B5 CS=04B5 IP=0100 NV UP DI NZ NA PO NC
 
-Q
 
B>FIG5_18
- 
 
. 5.19 .EXE .COM ()
 
, CX .
W . ,
.COM. DEBUG
.EXE ,
. .COM
DEBUG.

( "" ),
. ,
, CX ,
W .
 

-------------------------------------------------
D
E
F
G
H
I
L
M
N
O
Q
R
S
T
U
W
--------------------------------------------------
. 5.20 DEBUG
 

FIG5=18.COM. , ,
.COM.
.5.17 .EXE.

.COM .EXE.
,
DEBUG. . 5.20
DEBUG. DOS
.