Skip to content

Instantly share code, notes, and snippets.

@Pinacolada64
Created June 4, 2020 23:39
Show Gist options
  • Save Pinacolada64/283545c2ad62252c9732b51e23f10278 to your computer and use it in GitHub Desktop.
Save Pinacolada64/283545c2ad62252c9732b51e23f10278 to your computer and use it in GitHub Desktop.
Bell from CCGMS terminal
{number:1}
{crunch:on}
for t8=1 to 5
sys{sym:bell}:for d=1 to 400:next
next t8
{asm}
bell:
ldx #$0f
stx $d418 ; volume
ldx #9
stx $d413
ldx #0
stx $d414
ldx #$40
stx $d40f
ldx #0
stx $d412
ldx #$11
stx $d412
rts
{endasm}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment