free hit counter

IBM XT 5160 Technical Reference page 235

Hide thumbs Also See for XT 5160:
Table of Contents

Advertisement

IBM Personal Computer MACRO Assembler
Version 2.00
POST ----- 01/10/86
SYSTEM POST ANO BIOS PROCEDURES
1-5
01-10-86
·
- --
-
--
-
- --
-
---- - - -
-
- -
- -
- - - -
----
---- --------
-
- - --
El0:
·
- - -
--
-
- -- - - - - - -
---
- -
---
-
---
- ---- - - ------- -
-
--
-
----
- -----
E6:
·
-
--
- - - - - -- -
--
- -
-
- --- - - - - - ---
-- --
- - - --- - ---------
;
SETUP V IDEO OAT A ON SCREEN FOR V IDEO
;
LINE TEST.
; DESCRIPTION
;
ENABLE V IDEO SIGNAL AND SET MODE.
;
0 I SPLA Y A HOR I ZONTAL BAR ON SCREEN.
I NIT I ALI ZE AND START CRT CONTROLLER
(6845)
;
TEST VIDEO READ/WRITE STORAGE.
; DESCRIPTION
RESET THE V IDEO ENABLE SIGNAL.
SELECT ALPHANUMER I C MODE, 40 • 25, B
&
W.
READ/WRITE DATA PATTERNS TO STG. CHECK STG
ADDRESSAB I L I TY •
ERROR
=
1 LONG AND 2 SHORT BEEPS
; KEYBOARD PRESENT?
; LOAD MFG. TEST REQUEST?
; GO TO BOOTSTRAP I F SO
MFG PLUG IN?
NO
I GO TEST VIDEO R/W STG
; R/W STG FAILURE -
BEEP SPK
I GET V IDEO SENSE SWS
(AH)
I SAVE IT
AX
AX
AL,PORT A
AL,OFFH-
;
WAS DATA LINE GROUNDED
E6
DATA_AREA[OMFG_TST-DATA40)
;
SET MANUFACTURING TEST FLAG
OE2C3H
002C3H
NMI_INT_1
DX,3B8H
CX,2048
AL,1
AH,30H
E9
BH,OB8H
DX,3D8H
CH,20H
AL
BL,OAAH
E6
BL,065H
D3B
MFG_BOOT
BL,BL
E6
AL,38H
PORT_B,AL
MODE REG FOR B / W
RAM WORD CNT FOR B/W CD
SET MODE FOR BW CARD
BfW VIDEO CARD ATTACHED?
YES -
GO TEST V IDEO STG
BEG V IDEO RAM ADDR COLOR CD
MODE REG FOR COLOR CD
RAM WORD CNT FOR COLOR CD
SET MODE TO 0 FOR COLOR CD
, TEST VIDEO STG:
OX, AL
I 0 I SABLE V IDEO FOR COLOR CD
DATA_WORD[ORESET_FLAG-DATA40),1234H
I
POD INIT BY KBD RESET?
ES,BX
I POINT ES TO VIDEO RAM STG
E 10
;
YES -
SK I P V IDEO RAM TEST
DS,BX
; POINT OS TO VIDEO RAM STG
OS :NOTH I NG,ES: NOTH I NG
STGTST CNT
EI7
-
OR
..JNZ
MOV
OUT
NOP
NOP
IN
AND
..JNZ
INC
CMP
..JE
CMP
..JNE
..JMP
POP
PUSH
MOV
MOV
MOV
CMP
..JE
MOV
MOV
MOV
DEC
OUT
CMP
MOV
..JE
MOV
ASSUME
CALL
..JNE
NOP
IN
AL,PORT C
MOV
C L , 4 -
ROL
AL,CL
; ROTATE TO HIGH NIBBLE
AND
AL,1 1 1 10000B
;
ISOLATE
OR
AL , AH
; COMB I NE WITH OTHER BANK
SUB
AH,AH
MOV
DATA WORD[OEQUIP FLAG-DATA40),AX
;
SAVE SWITCH INFO
MOV
AL,99H
-
OUT
CMD PORT, AL
CALL
KBD-RESET
;
SEE IF MFG • ..JUMPER IN
CMP
BL ,OEAH
;
I S TH I S THE EXTENDED KEYBOARD?
..JNE
KBX 1
;
I F NOT THEN LEAVE THE FLAG ALONE
MOV
DATA_AREA[OKB_FLAG_3-DATA40) ,KBX
; EXTENDED KEYBOARD
..JMP
E6
; DONE WITH KEYBOARD HERE
MOV
AX,DATA WORD[OEQUIP FLAG-DATA40)
I
GET SENSE SWITCH INFO
PUSH
AX
-
-
I
SAVE IT
MOV
AL,30H
MOV
DATA WORD[OEQUIP FLAG-DATA40) ,AX
SUB
AH,AH
-
I NT
1OH
I
SEND I NIT TO B / W CARD
MOV
AL,20H
MOV
DATA_WORD[OEQUIP_FLAG-DATA40) ,AX
SUB
AH, AH
;
AND I NIT COLOR CARD
INT
10H
POP
AX
I RECOVER REAL SWI TCH INFO
MOV
DATA_WORD[OEQUIP_FLAG-DATA40) ,AX
I RESTORE IT
;
AND CONT I NUE
AND
AL, 30H
I
I SOLATE V IDEO SWS
..JNZ
E7
;
V IDEO SWS SET TO O?
MOV
0 I , OFFSET OV IDEO I NT
;
SET I NT 10H TO DUMMY
MOV
WORD PTR [0 I ) , OFFSET DUMMY _RETURN
I
RET I F NO V IDEO CARD
..JMP
E 18_1
I BYPASS V IDEO TEST
E7:
I TEST VIDEO:
CMP
AL,30H
I B/W CARD ATTACHED?
..JE
E8
; YES -
SET MODE FOR B / W CARD
I NC
AH
I
SET COLOR MODE FOR COLOR CD
CMP
AL,20H
;
80X25 MODE SELECTED?
..JNE
E8
NO -
SET MODE FOR 40X25
MOV
AH, 3
SET MODE FOR 80X25
E8:
XCHG
AH , AL
SET MODE:
PUSH
AX
SAVE VIDEO MODE ON STACK
SUB
AH , AH
I NIT I AL I ZE TO ALPHANUMER I C MD
INT
10H
CALL VIDEO 10
POP
AX
RESTORE V IDEO SENSE SWS IN AH
PUSH
AX
I RESAVE VALUE
MOV
BX, OBOOOH
; BEG V IDEO RAM ADDR B/W CD
..JMP
SHORT E8A
;----- UNNATURAL ACT FOR ADDRESS COMPATIBILITY
ORG
ORG
NMI
INT:
-
..JMP
D3B:
E9:
E8A:
KBXl :
452
021 B 90
453
02 I C E4 62
454
021E BI
04
455
0220 02 CO
456
0222 24 FO
457
0224 OA C4
458
0226 2A E4
459
0228 A3 0410 R
460
022B BO 99
461
0220 E6 63
462
022F E8
19E3 R
463
0232 80 FB EA
464
0235 75 08
465
0237 C6 06 0496 RIO
466
023C EB 22 90
467
023F
468
023F 80 FB AA
469
0242 74 1C
470
0244 80 FB 65
471
0247 75 03
472
0249 E9 0021 R
473
024C
474
024C OA DB
475
024E 75
10
476
0250 BO 38
477
0252 E6 61
478
0254 90
479
0255 90
480
0256 E4 60
481
0258 24 FF
482
025A 75 04
483
025C FE 06 0412 R
484
485
486
487
488
489
490
491
492
493
494
495
0260
496
0260 A I
0410 R
497
0263 50
498
0264 BO 30
499
0266 A3 0410 R
500
0269 2A E4
501
026B CD 10
502
0260 BO 20
503
026F A3 0410 R
504
0272 2A E4
505
0274 CD 10
506
0276 58
507
0277 A3 0410 R
508
509
027A 24 30
510
027C 75 OA
511
027E BF 0040 R
512
0281
C7 05
IF49 R
513
0285 E9 033B R
514
'0288
515
0288 3C 30
516
028A 74 08
517
028C FE C4
518
028E 3C 20
519
0290 75 02
520
0292 B4 03
521
0294 86 EO
522
0296 50
523
0297 2A E4
524
0299 CD 10
525
029B 58
526
029C 50
527
0290 BB BOOO
528
02AO E8 24
529
530
531
532
533
02C3
534
02C3
535
02C3 E9
185C R
536
537
02C6
538
02C6 BA 03B8
539
02C9 B9 0800
540
02CC BO 01
541
02CE 80 FC 30
542
0201
74 09
543
0203 B7 B8
544
0205 BA 0308
545
0208 B5 20
546
02DA FE C8
547
02DC
548
02DC EE
549
0200 81
3E 0472 R 1234
550
02E3 8E C3
551
02E5 74 07
552
02E7 8E DB
553
554
02E9 E8 OCCF R
555
02EC 75 33
556
557
558
559
560
561
562
563
02EE
564
02EE 58
565
02EF 50
5-88
POST (01/10/86)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents