free hit counter

IBM XT 5160 Technical Reference page 292

Hide thumbs Also See for XT 5160:
Table of Contents

Advertisement

INPUT
SOURCE
(B I OS FOR THE I BM PERSONAL COMPUTER XT I
1 1 108/82
NUM TRANS
-
THIS ROUTINE CALCULATES THE NUMBER OF SECTORS THAT
WERE ACTUALLY TRANSFERRED To/FROM THE DISKETTE
5-145
SUBTRACT START FROM END
GET CYL I NDER ENDED UP ON
SAME AS WE STARTED
GET END I NG SECTOR
IF ON SAME CYL,
THEN NO ADJUST
GET EOT VALUE
INTO AL
USE EOT + 1 FOR CALCULAT I ON
RESUL TS DONE
DECREMENT THE STATUS COUNTER
GO BACK FOR MORE
CHIP HAS FAILED
; RECOVER REG I STERS
; GOOD RETURN CODE FROM TEST I NST
SRT=C, HD UNLOAD=OF -
1ST SPEC I FY BYTE
HD LOAD= 1, MODE=DMA -
2ND SPEC I FY BYTE
WA I T AFTER OPN TIL MOTOR OFF
512 BYTES
I
SECTOR
EOT ( LAST SECTOR ON TRACK I
GAP LENGTH
DTL
GAP LENGTH FOR FORMAT
FILL BYTE FOR FORMAT
HEAD SETTLE T I ME ( MILL I SECONDS)
MOTOR START T I ME (118 SECONDS)
OEFC7H
LABEL
BYTE
11001111B
2
MOTOR WA IT
2
-
8
02AH
OFFH
050H
OF6H
25
4
AL,CL
ENDP
BX
DX
CX
J44
BL
J38
J41
PC-XT System BIOS (11/08/82)
POP
POP
POP
RET
JZ
DEC
JNZ
JMP
J45:
ORG
DI SK BASE
-
DB
DB
DB
DB
DB
DB
DB
DB
DB
DB
DB
SUB
RET
NUM TRANS
RESULTS ENDP
DISK BASE
-
TH I SIS THE SET OF PARAMETERS REQU I RED FOR
0
I SKETTE OPERAT I ON.
THEY ARE PO I NTED AT BY THE OAT A VAR I ABLE 0 I SK PO INTER. TO
MOD I FY THE PARAMETERS, BU I LD ANOTHER PARAMETER BLOCK AND PO I NT
DI SK_POINTER TO IT.
(CHI
= CYLINDER OF OPERATION
(CLl
= START SECTOR OF OPERATION
OUTPUT
( AL I
= NUMBER ACTUALLY TRANSFERRED
NO OTHER REG I STERS MOD I F I ED
.
----------------------------------------------------------------
NUM TRANS
PROC
NEAR
-
MOV
AL,NEC STATUS+3
CMP
AL ,CH -
MOV
AL,NEC STATUS+5
JZ
J 4 5 -
MOV
BX,8
CALL
GET PARM
MOV
AL,AH
INC
AL
;----- RESULT OPERATION IS DONE
J44:
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
LINE
EFC7
EFC7
EFC7 CF
EFC8 02
EFC9 25
EFCA 02
EFCB 08
EFCC 2A
EFCD FF
EFCE 50
EFCF F6
EFDO
19
EFDI
04
LOC OBJECT
EFAE
EFAE A04500
EFBI
3AC5
EFB3 A04700
EFB6 740A
EFB8 BB0800
EFBB E8AEFE
EFBE 8AC4
EFCO FECO
EFC2
EFC2 2AC 1
EFC4 C3
EFAA
EFAA 5B
EFAB 5A
EFAC 59
EFAD C3
EFA2 7406
EFA4 FECB
EFA6 75CA
EFA8 EBE3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents