!position_1 = $EFF ;position of the 1st yc !position_2 = $F00 ;position of the 2nd yc !position_3 = $F01 ;position of the 3rd yc !position_4 = $F02 ;position of the 4th yc !position_5 = $F03 ;position of the 5th yc !yoshicoin_empty = $FC ;tile that if there is no yc in that spot (FC is invsable tile) !yoshicoin_fill = $2E ;tile used if there is a yc collected (2E is a coin tile) LDA $1420 ;yc counter CMP #$01 ;if player has less than 1 yc BCC Showempty ;show empty yc if the player has less than on position 1 LDA #!yoshicoin_fill ;display filled yc STA !position_1 BRA yoshi_coin2 ;go to yc2 Showempty: LDA #!yoshicoin_empty ;display empty yc STA !position_1 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; yoshi_coin2: LDA $1420 ;yc counter CMP #$02 ;has less than 2 yc BCC Showempty2 ; LDA #!yoshicoin_fill ;display filled yc STA !position_2 ; BRA yoshi_coin3 ;go to yc3 Showempty2: LDA #!yoshicoin_empty ;display empty yc STA !position_2 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; yoshi_coin3: LDA $1420 ;yc counter CMP #$03 ;has less than 3 yc BCC Showempty3 ; LDA #!yoshicoin_fill ;display filled yc STA !position_3 ; BRA yoshi_coin4 ;go to yc4 Showempty3: LDA #!yoshicoin_empty ;display empty yc STA !position_3 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; yoshi_coin4: LDA $1420 ;yc counter CMP #$04 ;has less than 4 yc BCC Showempty4 ; LDA #!yoshicoin_fill ;display filled yc STA !position_4 ; BRA yoshi_coin5 ;go to yc5 Showempty4: LDA #!yoshicoin_empty ;display empty yc STA !position_4 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; yoshi_coin5: LDA $1420 ;yc counter CMP #$05 ;has less than 5 yc BCC Showempty5 ; LDA #!yoshicoin_fill ;display filled yc STA !position_5 ; BRA return ;go to return Showempty5: LDA #!yoshicoin_empty ;display empty yc STA !position_5 return: RTS