10 REM PC-BASIC test 
20 REM PALETTE syntax
30 DIM A%(20)
40 OPEN "OUTPUT.TXT" FOR OUTPUT AS 1
50 ON ERROR GOTO 10000
60 PALETTE
70 PALETTE 0,0
75 PALETTE 0, 254
80 PALETTE 0, 255
85 PALETTE 0, 256
90 PALETTE 0,32768
100 PALETTE 255,0
110 PALETTE 32768, 0
120 PALETTE A$
130 PALETTE A$,
140 PALETTE A$ PRINT
150 PALETTE 0 PRINT
160 PALETTE 0, PRINT
170 PALETTE USING A%
180 PALETTE 0,0 USING A%
185 PALETTE 0, USING A%
190 PALATTE USING
200 PALETTE USING PRINT
9999 END
10000 PRINT#1, ERR, ERL
10010 RESUME NEXT

