Getrez
Get Screen Resolution Mode
Getrez() Opcode = 4
G e t re z ( ) c a n b e u se d to de te rm in e th e cu rre n t d isp lay m o d e. T h e th ree
d isp lay m o d es cu rre n tly su p p o rte d by th e ST are lo-re s (32 0 x 20 0, 16
co lo rs ), m e d iu m -res (6 40 x 2 0 0, 4 co lors) a n d h i-res (64 0 x 4 00 , b lack an d
w h ite).
C macro format
int rez;
re z = G e t r e z ( );
Machine language format
m o v e.w # 4 , - (sp )
trap # 1 4
ad d q .l # 2 ,s p
Inputs
N o n e
Results
DO rez w o rd A flag th a t in d icate s th e cu rre n t d isp lay re so lu tio n:
0 = L ow reso lu tio n
1 = M ed iu m reso lu tion
2 = H igh reso lu tio n
See also
S e ts c re e n ()
195