-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathincCOLOURCommand.asm
42 lines (36 loc) · 1.38 KB
/
incCOLOURCommand.asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
;*******************************************************************************
;* COLOUR Command *
;* This BASIC function Set the background colours *
;* *****************************************************************************
;* Syntax : COLOUR or co Shifted L *
;* Inputs : Border Colour (0->15) *
;* : Background Colour (0 ->15) *
;* : Background Colour1 (0 ->15) (optional) *
;* : Background Colour2 (0 ->15) (optional) *
;* : Background Colour3 (0 ->15) (optional) *
'*******************************************************************************
; colour : colour a, b, (c, d, e)
COM_COLOUR
jsr bas_GETBYTC$
stx VICII_EXTCOL
jsr bas_CHKCOM$ ; Checks For a Comma
jsr bas_GETBYTC$
stx VICII_BGCOL0
stx COMM_GRAPHIC_COLOUR
cmp #44
bne COLOUR_END
jsr bas_CHRGET$
jsr bas_GETBYTC$
stx VICII_BGCOL1
cmp #44
bne COLOUR_END
jsr bas_CHRGET$
jsr bas_GETBYTC$
stx VICII_BGCOL2
cmp #44
bne COLOUR_END
jsr bas_CHRGET$
jsr bas_GETBYTC$
stx VICII_BGCOL3
COLOUR_END
jmp GRAP_ClearScreen