Import Cardgame 0.1.15 upstream source snapshot
Original author: Pierre Sarrazin. Public-domain library and demo. Source: http://sarrazip.com/dev/cardgame-0.1.15.tar.gz Archive SHA-256: ca706dddd96fec63b829f8958c2e47485b0e1166129d45fda0b6369404c1bb54
This commit is contained in:
commit
d3a54e24ee
39 files changed
+2603
No files matched your search
+27
@@ -0,0 +1,27 @@
|
||||
// By Pierre Sarrazin <http://sarrazip.com/>
|
||||
// This file is in the public domain.
|
||||
|
||||
#include "cardgame.h"
|
||||
|
||||
|
||||
dword beep_cpuFreqDiv16;
|
||||
|
||||
|
||||
void
|
||||
initSound()
|
||||
{
|
||||
beep_cpuFreqDiv16 = 894886UL >> 4; // re: 0.894886 MHz CPU clock
|
||||
|
||||
asm
|
||||
{
|
||||
lda $FF01 // select sound out
|
||||
anda #$F7 // reset mux bit
|
||||
sta $FF01 // store
|
||||
lda $FF03 // select sound out
|
||||
anda #$F7 // reset mux bit
|
||||
sta $FF03 // store
|
||||
lda $FF23 // get PIA
|
||||
ora #8 // set 6-bit sound enable
|
||||
sta $FF23 // store
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user