Setpalette
Set Color Palette
Setpalette()
Opcode = 6
T his fu n ctio n a llo w s y o u to se t an en tire co lo r p alette o f 16 h ard w a re co lo r
reg iste rs a t on e tim e.
C macro format
in t p ale tte [1 6];
S etp alette(p alette);
Machine language format
m o v e .l p alette , - (sp)
m o v e .w # 6 , - (sp )
trap # 1 4
ad d q .l # 6 ,s p
Inputs
p alette lo ng
A p o in te r to an arra y th at h old s 16 w o rd s
of co lo r d ata, ea ch of w h ich co n tain s th e
co lo r s ettin gs for on e of th e co lor reg is
te rs. Bits 0 - 3 are u se d fo r th e blue co m
p o n en t, b its 4 - 7 for g re e n , a n d bits 8 -1 1
fo r red .
Results
N o n e
See also
S e tco lo r ()
197