EasyManua.ls Logo

Atari ST series - Page 204

Atari ST series
420 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Setscreen
Set Screen Parameters
Setscreen() Opcode = 5
T h e S e ts c r e e n () fu n ctio n allo w s th e p ro g ra m m e r to ch an g e th e p h ysica l
scre en a d d re ss, th e log ical s cree n ad d re ss , a n d /o r th e d isp lay reso lu tio n
m od e. T h e re a re so m e c o n stra in ts o n th e se ch an g e s, h o w e v er. B oth th e
p h ysic a l an d lo gical s cre e n a d d re ss e s m u st b eg in o n an ev en p ag e (2 56 -
b yte ) b o u n d ary . C h an g in g th e reso lu tio n m o d e on ly w o rk s if th e p ro g ra m
is ru n n in g o n a co lo r m on ito r, sin ce T O S w o n 't let yo u se lect a co lo r m o d e
o n a m o n o ch ro m e scre e n , o r vice v ers a. A n d o n co lor m o n ito rs, re so lu tio n
sw itch in g w ith S e ts c re e n () o n ly w o rk s fo r T O S p ro g ra m s, sin ce th ere is no
w ay o f tellin g G E M to ad ju st to a n ew scre en m o d e, o th e r th an b y u sin g
th e S et P re fe ren ce s m en u o p tio n o f th e D esk to p . N o te th at w h en yo u
ch an g e reso lu tio n m o d es , th e s cree n is cle ared a n d certa in o th er s cre e n p a
ram ete rs a re rein itialized .
C macro format
in t rez;
lo n g lo ga d d r, p h y sa d d r;
S etscree n (lo g ad d r, p h y sa d d r, re z);
Machine language format
m o v e.l
m o v e.l
m o v e.l
m o v e.w
trap
ad d q .l
Inputs
re z
p h y sa d d r
lo ga dd r
Results
N o n e
See also
P h y s b a s e (), L o g b a s e (), G e t r e z ()
# r e s , - (sp )
p h y sa d d r, - (sp )
lo g ad d r, - (sp )
# 5 , - (sp )
# 1 4
# 1 2 ,s p
w o rd T h e n e w d isp lay re so lu tio n m o d e
0 = L o w re so lu tio n
1 = M ed iu m reso lu tion
2 = H ig h reso lu tion
A n y n eg a tiv e n u m b er m e an s k eep cu r
ren t disp lay re so lu tio n
lo n g T h e n e w startin g a d d re ss for th e ph ysical
sc r e e n . A n y n eg ativ e n u m b er m e a n s k eep
cu rre n t ph ysical scre en ,
lo n g T he n e w startin g ad d re ss for th e logical
scre en . A n y ne g ativ e n u m b er m e a n s kee p
cu rre n t lo gical scree n .
196