Mute commands in ASM

Post Reply
User avatar
Raftronaut
Posts: 266
Joined: Mon Sep 03, 2018 4:47 pm

Mute commands in ASM

Post by Raftronaut » Fri Sep 06, 2019 9:31 pm

I understand that GGsound has a mute function that has the ability to mute/unmute either of the square channels. Is this correct? And if so, is there a simple set of ASM commands that can be used to edit scripts in order to mute certain channels for specific events?
Space Raft 2.0 Demo: [url] http://nesmakers.com/viewtopic.php?f=52&t=2867 [/url]

Chiptune: [url] https://soundcloud.com/user-634230995-350638590 [/url]
User avatar
Raftronaut
Posts: 266
Joined: Mon Sep 03, 2018 4:47 pm

Re: Mute commands in ASM

Post by Raftronaut » Sun Sep 08, 2019 8:34 pm

Code: Select all

ldx #1;Square 2
    lda stream_flags,x
    ora #STREAM_SILENCE_SET
    sta stream_flags,x

    lda stream_channel_register_1,x
    and #%11110000
    sta stream_channel_register_1,x
dropping this here as it may hold the key
Space Raft 2.0 Demo: [url] http://nesmakers.com/viewtopic.php?f=52&t=2867 [/url]

Chiptune: [url] https://soundcloud.com/user-634230995-350638590 [/url]
Post Reply