IBM Persona I Computer MACRO Assemb I er
Vers
i
on 2.00
VIDEO ---- 01/10/86
VIDEO DISPLAY BIOS
1-1
01-10-86
V IDEO 10
-THESE ROUT I NES PROV I DE THE CRT 0 I SPLA Y INTERFACE
THE FOLLOW I NG FUNCT IONS ARE PROV IDEO:
SPEAKER BEEP ROUT I NE
CHARACTER GENERATOR GRAPHICS TABLE
LOAD (OS)
WITH OAT A SEGMENT SELECTOR
REGEN BUFFER LENGTH TABLE
COLUMNS PER MODE TABLE
MODE SET VALUE PER MODE TABLE
SET MODE
(AL I CONT A I NS MODE VALUE
(ALl
=
OOH
40X25 BW MODE (POWER ON DEFAUL
Tl
(ALl
=
01 H
40X25 COLOR
(AL)
=
02H
80X25 BW
(ALl
=
03H
80X25 COLOR
GRAPH I CS MODES
(AL)
=
04H
320X200 COLOR
(AL)
=
05H
320X200 BW MODE
(AL)
=
06H
640X200 BW MODE
(ALl
=
01H
80X25 MONOCHROME (USED INTERNAL TO VIDEO ONLY)
••• NOTES -BW MODES OPERATE SAME AS COLOR MODES, BUT COLOR
BURST I S NOT ENABLED
-CURSOR
I S NOT 0 I SPLAYED I N GRAPH I CS MODE
SET CURSOR TYPE
(CH)
BITS 4-0
=
START LINE FOR CURSOR
•• HARDWARE WILL ALWAYS CAUSE BLINK
•• SETT I NG BI T 5 OR 6 WILL CAUSE ERRAT I C BL I NK I NG
OR NO CURSOR AT ALL
(CLI
=
BITS 4-0
=
END LINE FOR CURSOR
SET CURSOR POS I T I ON
(DH,DL)
=
ROW,COLUMN
(OOH,OOH)
IS UPPER LEFT
(BH)
=
PAGE NUMBER
(MUST BE OOH FOR GRAPH I CS MODES)
READ CURSOR POS I T I ON
(BH)
=
PAGE NUMBER
(MUST BE OOH FOR GRAPH I CS MODES)
ON EX I T (DH, DL)
=
ROW, COLUMN OF CURRENT CURSOR
( CH , CL )
=
CUR SOR MODE CURRENTL Y SET
READ LIGHT PEN POSITION
ON EXIT:
(AH)
=
OOH -- LIGHT PEN SWITCH NOT DOWN/NOT TRIGGERED
(AH)
=
01H -- VALID LIGHT PEN VALUE IN REGISTERS
( DH , DL )
=
ROW, COLUMN OF CHARACTER LP POS I T I ON
(CH)
=
RASTER LINE (0-199)
(BX)
=
PIXEL COLUMN (0-319,639)
SELECT ACT I VE 0 I SPLA Y PAGE
(VALl 0 ONLY FOR ALPHA MODES I
(ALl
=
NEW PAGE VALUE (0-1 FOR MODES 0&1, 0-3 FOR MODES 2&3)
SCROLL ACT I VE PAGE UP
(ALl
=
NUMBER OF LINES,
(LINES BLANKED AT BOTTOM OF WINDOW)
(AL)
=
OOH MEANS BLANK ENTI RE WINDOW
( CH , CL )
=
ROW, COLUMN OF UPPER LEFT CORNER OF SCROLL
( DH ,DL )
=
ROW, COLUMN OF LOWER RIGHT CORNER OF SCROLL
( BH)
=
ATTR IBUTE TO BE USED ON BLANK LINE
SCROLL ACT I VE PAGE DOWN
(ALl
=
NUMBER OF LINES,
INPUT LINES BLANKED AT TOP OF WINDOW
(ALl
=
OOH MEANS BLANK ENT I RE WINDOW
( CH, CL )
=
ROW, COLUMN OF UPPER LEFT CORNER OF SCROLL
( DH , DL )
=
ROW, COLUMN OF LOWER RIGHT CORNER OF SCROLL
( BH)
=
ATTR I BUTE TO BE USED ON BLANK LINE
BEEP:NEAR
CRT CHAR GEN: NEAR
DDS:NEAR-
M5:WORD
M6:BYTE
M1:BYTE
EXTRN
EXTRN
EXTRN
EXTRN
EXTRN
EXTRN
(AH)
=
05H
(AHI
=
06H
(AH)
=
03H
(AH)
=
02H
I
NT 10
H - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - - -- -- - - -- --- -- -- - - - - ---
:
:
:
:
:
:
:
:
(AHI
=
01H
(AH)
=
OIH
(AHI
=
04H
(AHI
=
OOH
CHARACTER HANDL I NG ROUT I NES
(AHI
=
08H
READ ATTRIBUTE/CHARACTER AT CURRENT CURSOR POSITION
(BHI
=
DISPLAY PAGE (VALID FOR ALPHA MODES ONLY)
ON EXIT:
( AL )
=
CHAR READ
(AH)
=
ATTR IBUTE OF CHARACTER READ
(ALPHA MODES ONLY)
( AH)
=
09H
WR I TE ATTR IBUTE / CHARACTER AT CURRENT CURSOR POS I T I ON
(BH)
=
DISPLAY PAGE (VALID FOR ALPHA MODES ONLY)
PAGE I 18, 121
TITLE VIDEO ---- 01/10/86
VIDEO DISPLAY BIOS
.LI ST
CODE
SEGMENT BYTE PUBL I C
PUBL I C
ACT 0 I SP PAGE
PUBL I C
REAO AC CURRENT
PUBL I C
READ-CURSOR
PUBL I C
READ-DOT
PUBL I C
READ-LPEN
PUBL I C
SCROLL DOWN
PUBL I C
SCROLL-UP
PUBL I C
SET COLOR
PUBL I C
SET-CPOS
PUBL I C
SET-CTYPE
PUBL I C
SET-MODE
PUBL I C
WR I TE AC CURRENT
PUBL I C
WR I TE-C CURRENT
PUBL I C
WR I TE-DOT
PUBL I C
WR I TE-TTY
PUBLIC
VIDEO-IO 1
PUBLI C
V IDEO:STATE
PUBL I C
SET MODE
PUBL I C
SET-CTYPE
PUBL I C
SET-CPOS
PUBLI C
REAO CURSOR
PUBL I C
READ-LPEN
PUBLI C
ACT
01
SP PAGE
PUBL I C
SCROLL UP
PUBL I C
SCROLL-DOWN
PUBL I C
READ AC CURRENT
PUBL I C
WR I TE AC CURRENT
PUBL I C
WR I TE-C CURRENT
PUBL I C
SET COLOR
PUBLIC
WRITE DOT
PUBL I C
READ OOT
PUBLIC
WRITE TTY
PUBLIC
VIDEO-STATE
PUBL I C
V IDEO-RETURN
PUBL I C
V IDEO-RETURN
PUBL I C
V IDEO-RETURN
PUBL I C
WR I TE:STR I NG
1
2
3
4
0000
5
6
1
8
9
10
11
12
13
14
15
16
11
18
19
20
21
22
23
24
25
26
21
28
29
30
31
32
33
34
35
36
31
38
39
40
41
42
43
44
45
46
41
48
49
50
51
52
53
54
55
56
51
58
59
60
61
62
63
64
65
66
61
68
69
10
11
12
13
14
15
16
11
18
19
80
81
82
83
84
85
86
81
88
89
90
91
92
93
94
95
96
91
98
99
100
101
102
103
104
105
106
101
108
109
110
111
112
113
114
5-62
VIDEO (01/10/86)