Skip to content

Instantly share code, notes, and snippets.

@air
air / hey SID play a D.bas
Last active August 29, 2015 14:04
First SID control program
00 rem based on tone example at http://goo.gl/tIDtAy
05 rem sid is at d400 = 54272
10 sid=54272
12 rem high nibble multiplier
13 high=16
15 rem clear 28 sid bytes
20 for i = 0 to 28 : poke sid + i, 0 : next
25 rem set volume segment of d418 (3 bits) to maximum %111
30 poke sid + 24, 15
35 rem everything here will act on voice 1.
#!/bin/bash
#
# appify -- convert your non-interactive shell script into a Mac OS X application
# Copyright (C) 2010 Adam Backstrom
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.