Megatel Quark/100 Specifications Page 19

  • Download
  • Add to my manuals
  • Print
  • Page
    / 86
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 18
The
example
and
description
above
assumed
that the interrupts
were
disabled throughout the
procedure.
It
would
also
be
possible to re-enable interrupts
after
loading the
Video
Memory
starting
address
and
changing
the polarity of the
CA1
active transition.
The
next negative
transition
of the
VS
signal
would
generate
an
interrupt, immediately following
which
the
Graphics
mode
bit
and
the
V2
bit
would
be
changed,
just
as
in the non-interrupt procedure
above.
To
return
to
Alphnumeric
mode,
it
is necessary only to set the Graphics/Alphanumeric
mode
bit,
and
then clear the
V2
bit
in the
SAM,
and
set
up
the F-bits for the desired
Video
Display
Memory
location.
The
routine
below
wi
II
set up the
Alphanumeric
mode
with the
Video
Display
Memory
located between
F000
and
FFFF,
as is set up
by
the Bootstrap
PROM.
;alpha-entry
example
routine
SAMV2C
EQU
0FF84H
iADDRESS
TO
CLEAR
V2
BIT
IN
SAM
SAMF0C
EQU
0FF86H
;ADDRESS
TO
CLEAR
F0
BIT
IN
SAM
SAMF1C
EQU
0FF88H
;ADDRESS
TO
CLEAR
F1
BIT
IN
SAM
SAMF2S
EQU
0FF8BH
;ADDRESS
TO
SET
F2
BIT
IN
SAM
SAMF3S
EQU
0FF8DH
;ADDRESS
TO
SET
F3
BIT
IN
SAM
SAMFSS
EQU
0FF91H
;ADDRESS
TO
SET
FS
BIT
IN
SAM
SAMF6S
EQU
0FF93H
;ADDRESS
TO
SET
F6
BIT
IN
SAM
PIAPA
EQU
074H
PIACRA
EQU
07SH
PIAPB
EQU
076H
SAMSET
EQU
0000BH
ALPHA:
.
,
.
,
iTO
AVOID
GLITCHING
SCREEN,
THIS
POINT
SHOULD
SYNCHRONIZED
WITH
iVERTICAL
SYNC
SIGNAL
(SEE
GRAPHICS-ENTRY
EXAMPLE)
DI
;DISABLE
INTERRUPTS
IN
PIAPB
iREAD
CONTENTS
OF
PIA
PORT
B
OUTPUT
ORI
40H
;SET
BIT
6
FOR
ALPHANUMERIC
MODE
OUT
PIAPB
LXI
H,SAMV2C
CALL
SAMSET
LXI
H,SAMF0C
CALL
SAMSET
LXI
H,SAMF1C
CALL
SAMSET
LXI
H,SAMF2S
CALL
SAMSET
LXI
H,SAMF3S
CALL
SAMSET
LXI
H,SAMFSS
CALL
SAMSET
LXI
H,SAMF6S
CALL
SAMSET
EI
RET
This completes the routine to switch
from
graphics
mode
to alphanumeric
mode.
Loading
the
Programmable
Character Generator
On
the
QUARK
the patterns for the characters displayed
in
the
Alphanumeric
Mode
are
loaded
into
the
Character Generator under
software
control.
Once
loaded
the
contents
of
the
Character Generator
remain
unti l another character set
is
loaded
or unti C
power
to the
board
is
removed.
The
standard set
of
uti l
ity
routines included with the Distribution Software include
programs for loading the
Programmable
Character Generator
and
for designing character patterns
to
be loaded.
It
is
therefore
not
necessary to understand
how
the
Programmable
Character
Generator operates in order to
be
able to
make
use
of
this
feature.
Megatel
Computer
Technologies Toronto,
Canada
Page
H/W-14
Page view 18
1 2 ... 14 15 16 17 18 19 20 21 22 23 24 ... 85 86

Comments to this Manuals

No comments