Atari ST series Technical Reference Manual page 205

Hide thumbs Also See for ST series:
Table of Contents

Advertisement

Setpalette()
T h is f u n c t i o n a l l o w s y o u t o s e t a n e n t i r e c o l o r p a l e t t e o f 1 6 h a r d w a r e c o l o r
r e g i s t e r s a t o n e t i m e .
C macro format
in t p a l e t t e [ 1 6 ] ;
S e t p a l e t t e ( p a l e t t e ) ;
Machine language format
m o v e .l
p a l e t t e , - ( s p )
m o v e . w
# 6 , - ( s p )
t r a p
# 1 4
a d d q .l
# 6 , s p
Inputs
p a l e t t e
l o n g
Results
N o n e
See also
S e t c o l o r ( )
Setpalette
Set Color Palette
A p o i n t e r t o a n a r r a y t h a t h o l d s 1 6 w o r d s
o f c o l o r d a t a , e a c h o f w h i c h c o n t a i n s t h e
c o l o r s e t t i n g s f o r o n e o f th e c o l o r r e g i s ­
t e r s . B its 0 - 3 a r e u s e d f o r t h e b l u e c o m ­
p o n e n t , b i ts 4 - 7 f o r g r e e n , a n d b i ts 8 - 1 1
f o r r e d .
Opcode = 6
197

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents