mirror of
https://github.com/a2-4am/pitch-dark.git
synced 2025-01-07 07:30:40 +00:00
.
This commit is contained in:
parent
c9061c817d
commit
a9cc254a74
@ -10,8 +10,9 @@
|
|||||||
|
|
||||||
!source "src/macros.a"
|
!source "src/macros.a"
|
||||||
!source "src/memory.a"
|
!source "src/memory.a"
|
||||||
!source "src/gamelist.a"
|
|
||||||
!source "src/WeeGUI_MLI.s"
|
!source "src/WeeGUI_MLI.s"
|
||||||
|
|
||||||
|
!source "src/gamelist.a"
|
||||||
!source "src/okvs.a"
|
!source "src/okvs.a"
|
||||||
!source "src/prodos.a"
|
!source "src/prodos.a"
|
||||||
!source "src/ramdisk.a"
|
!source "src/ramdisk.a"
|
||||||
@ -22,6 +23,7 @@
|
|||||||
!source "src/paintcommon.a"
|
!source "src/paintcommon.a"
|
||||||
!source "src/paint.a"
|
!source "src/paint.a"
|
||||||
!source "src/paintoptions.a"
|
!source "src/paintoptions.a"
|
||||||
|
!source "src/sound.a"
|
||||||
|
|
||||||
.weeguiFilename
|
.weeguiFilename
|
||||||
!byte 10
|
!byte 10
|
||||||
@ -33,10 +35,12 @@ Start
|
|||||||
cmp #$30 ; 128K?
|
cmp #$30 ; 128K?
|
||||||
beq + ; yes, continue
|
beq + ; yes, continue
|
||||||
- jmp QuitToProDOS
|
- jmp QuitToProDOS
|
||||||
+ !byte $1a ; 65C02 INC, clear Z flag if supported
|
+ inc ; 65C02-only INC instruction will clear Z flag
|
||||||
beq - ; not a 65C02
|
beq - ; if Z flag is still set, this is not a 65C02
|
||||||
|
|
||||||
jsr DisconnectRAM32 ; disconnect /RAM in S3,D2 so we can use DHGR
|
jsr DisconnectRAM32 ; disconnect /RAM in S3,D2 so we can use DHGR
|
||||||
bit $C010
|
bit $C010 ; clear keyboard strobe
|
||||||
|
|
||||||
jsr LoadFile ; load WEEGUI binary at $4000
|
jsr LoadFile ; load WEEGUI binary at $4000
|
||||||
!word .weeguiFilename
|
!word .weeguiFilename
|
||||||
!word WGInit
|
!word WGInit
|
||||||
@ -75,26 +79,5 @@ ExitWeeGUI
|
|||||||
ldx #WGExit ; clean up WeeGUI
|
ldx #WGExit ; clean up WeeGUI
|
||||||
jmp WeeGUI
|
jmp WeeGUI
|
||||||
|
|
||||||
WAIT = $FCA8
|
|
||||||
SPEAKER = $C030
|
|
||||||
|
|
||||||
SoftBell
|
|
||||||
php
|
|
||||||
phx
|
|
||||||
pha
|
|
||||||
ldx #32
|
|
||||||
- lda #2
|
|
||||||
jsr WAIT
|
|
||||||
bit SPEAKER
|
|
||||||
lda #33
|
|
||||||
jsr WAIT
|
|
||||||
bit SPEAKER
|
|
||||||
dex
|
|
||||||
bne -
|
|
||||||
pla
|
|
||||||
plx
|
|
||||||
plp
|
|
||||||
rts
|
|
||||||
|
|
||||||
gPrefsStore
|
gPrefsStore
|
||||||
!word *+2 ; address of storage space for prefs
|
!word *+2 ; address of storage space for prefs
|
||||||
|
29
src/sound.a
Normal file
29
src/sound.a
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
;license:MIT
|
||||||
|
;(c) 2018 by 4am
|
||||||
|
;
|
||||||
|
; Sound routines
|
||||||
|
;
|
||||||
|
; Public functions
|
||||||
|
; - SoftBell
|
||||||
|
;
|
||||||
|
|
||||||
|
WAIT = $FCA8
|
||||||
|
SPEAKER = $C030
|
||||||
|
|
||||||
|
SoftBell
|
||||||
|
php
|
||||||
|
phx
|
||||||
|
pha
|
||||||
|
ldx #32
|
||||||
|
- lda #2
|
||||||
|
jsr WAIT
|
||||||
|
bit SPEAKER
|
||||||
|
lda #33
|
||||||
|
jsr WAIT
|
||||||
|
bit SPEAKER
|
||||||
|
dex
|
||||||
|
bne -
|
||||||
|
pla
|
||||||
|
plx
|
||||||
|
plp
|
||||||
|
rts
|
Loading…
Reference in New Issue
Block a user