EasyManua.ls Logo

Atari ST series - Page 235

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...
Setprt
Set Printer Configuration
Setprt()
Opcode = 33
T his fu nction allow s y o u to se t th e p rin ter co nfig u ratio n , a c od e n u m b er
th at co n ta in s in fo rm a tio n ab o u t th e ty p e o f p rin ter th at is atta ch e d . T his
in fo rm a tion is u se d b y so m e sy ste m ro u tin es, like th e s cre en p rin tin g fu nc
tion .
C macro format
in t c o d e , n ew co d e ;
co d e = S etp rt(n ew co d e );
Machine language format
m o v e.w n ew co d e, - (sp )
m o v e.w # 3 3 , - ( s p )
trap
ad d q .l
# 1 4
# 4 ,s p
Inputs
n ew c o d e w o rd T h e 16-b it p rin ter co nfig u ratio n flag y ou
w a n t to set.
T h e m ea n in g of ea ch flag bit is sh o w n in th is table:
Bit Number Description
0 P rin t ty p e
0 = D o t-M atrix
1 = D aisy w h eel
1 C o lo r typ e
0 = M o n oc h rom e
1 = C olo r p rin t
2 C o n tro l c o d e ty p e
0 = A tari
1 = E p so n
3 P rin t qu ality
0 = D raft
1 = Fin al qu ality
4 P rin ter p o rt
0 = Parallel
1 = R S 232 serial
5 P ap e r ty pe
0 = C o n tin u o u s
1 = Sin gle S h ee t
6 R e se rv ed for fu tu re us e
7 R e se rv ed fo r fu tu re u se
8 R e serv ed for fu tu re us e
9 R e serv e d fo r fu tu re u s e
10 R es erv ed for fu tu re u se
11 R e serv e d for fu tu re us e
12 R es erv ed fo r fu tu re us e
227