-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathincMOBCOLCommand.asm
32 lines (26 loc) · 1.02 KB
/
incMOBCOLCommand.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
;*******************************************************************************
;* MOBCOL Command *
;* This BASIC function to set up the sprite multi colour options *
;* *****************************************************************************
;* Syntax : MOBCOL or mo Shifted B *
;* Inputs : MultiColour 1 *
;* : MultiColour 2 *
;*******************************************************************************
; mobcol : multcol1, multicol2
COM_MOBCOL
jsr bas_GETBYTC$; Get Colour #1
cpx #16
bcc @ValidColour1
; Illegal Qty Error
jmp bas_IQERR$
@ValidColour1
stx VICII_SPMC0
jsr bas_CHKCOM$ ; Checks For a Comma
jsr bas_GETBYTC$; Get Sprite Poointer#
cpx #16
bcc @ValidColour2
; Illegal Qty Error
jmp bas_IQERR$
@ValidColour2
stx VICII_SPMC1
rts