Assembler






.
,
.
. ,
BIOS
.
, ,
, -- CHRN.
CHRN
,
.
, ,
CHRN , ..
,
. ,
CHRN , .
 
Microsoft (R) Macro Assembler Version 5.00 1/1/80 04:06:20
. 9.5 Page 1-1
 
PAGE ,132
TITLE . 9.5
0000 STACK SEGMENT STACK
0000 0040[ DW 64 DUP (?)
????
]
0080 STACK ENDS
0000 CODE SEGMENT
ASSUME CS:CODE,ES:CODE
0000 00 00 01 02 00 00 02 ID_BUFFER DB 0, 0, 1, 2, 0, 0, 2, 2
02
0008 00 00 03 02 00 00 04 DB 0, 0, 3, 2, 0, 0, 4, 2
02
0010 00 00 05 02 00 00 06 DB 0, 0, 5, 2, 0, 0, 6, 2
02
0018 00 00 07 02 00 00 08 DB 0, 0, 7, 2, 0, 0, 8, 2
02
 
0020 FORMAT PROC FAR
0020 1E PUSH DS ;
0021 2B C0 SUB AX, AX
0023 50 PUSH AX
 
0024 8D 1E 0000 R LEA BX, ID_BUFFER ; ES:BX
0028 0E PUSH CS
0029 07 POP ES
002A B9 0001 MOV CX, 1 ; 0, 1
002D BA 0000 MOV DX, 0 ; 0, 0
0030 TRACK_LOOP:
0030 8D 3E 0000 R LEA DI, ID_BUFFER ;
0034 B0 08 MOV AL, 8 ;
0036 ID_SETUP:
0036 26: 88 2D MOV ES:[DI], CH ; ()
0039 83 C7 04 ADD DI, 4 ;
003C FE C8 DEC AL
003E 75 F6 JNZ ID_SETUP ;
0040 B8 0501 MOV AX, 501H ;
0043 CD 13 INT 13H
0045 FE C5 INC CH ;
0047 80 FD 40 CMP CH, 40H ; ?
004A 75 E4 JNE TRACK_LOOP ;
004C CB RET ;
004D FORMAT ENDP
004D CODE ENDS
END FORMAT
 
. 9.5
CHRN
.
CHRN , .
CHRN
. ,
:
 
DB 10,0,1,2,10,0,2,2
DB 10,0,3,2,10,0,4,2
 
10 0 . ,
FORMAT PC DOS
MS DOS. . 9.5 ,
CHRN.
FORMAT PC DOS ,
PC DOS
.
,
A:.
, .
 
,
.
, ,
. DISKCOPY ,
,
.
, ,
.
 
,
10. ,
, .
DB 10, 0, 10, 2, 10, 0,
2, 2 DB 10, 0, 3, 2, 10, 0, 4, 2
 
10 1.
10,
PC DOS. DISKCOPY 10
. (
) 10 10 ,
, , .
 
.
( )
.
.
BIOS
CHRN,
, .
,
, .
, ,
. , BIOS,
, ,
.
. ,
, ,
DOS,
,
,
, .
(
BIOS),
, .
 
,
.
.
.