mirror of
https://github.com/pkali/scorch_src.git
synced 2026-05-20 22:34:21 +02:00
Better music in NTSC
This commit is contained in:
Binary file not shown.
+21
-3
@@ -252,6 +252,23 @@ FirstSTART
|
|||||||
cpy #screenheight+1
|
cpy #screenheight+1
|
||||||
bne @-
|
bne @-
|
||||||
|
|
||||||
|
.IF TARGET = 800
|
||||||
|
lda PAL
|
||||||
|
and #%00001110
|
||||||
|
bne NoRMT_PALchange
|
||||||
|
;it is PAL here
|
||||||
|
; Change RMT to PAL version
|
||||||
|
; 5 values in RMT file
|
||||||
|
; not elegant :(
|
||||||
|
mva #$06 MODUL-6+$941
|
||||||
|
mva #$10 MODUL-6+$a43
|
||||||
|
mva #$06 MODUL-6+$b9d
|
||||||
|
mva #$04 MODUL-6+$bd2
|
||||||
|
mva #$08 MODUL-6+$e17
|
||||||
|
NoRMT_PALchange
|
||||||
|
.ENDIF
|
||||||
|
|
||||||
|
|
||||||
; RMT INIT
|
; RMT INIT
|
||||||
lda #$f0 ;initial value
|
lda #$f0 ;initial value
|
||||||
sta RMTSFXVOLUME ;sfx note volume * 16 (0,16,32,...,240)
|
sta RMTSFXVOLUME ;sfx note volume * 16 (0,16,32,...,240)
|
||||||
@@ -1203,12 +1220,14 @@ DLIinterruptNone
|
|||||||
dec NTSCcounter
|
dec NTSCcounter
|
||||||
bne itsPAL
|
bne itsPAL
|
||||||
mva #6 NTSCcounter
|
mva #6 NTSCcounter
|
||||||
bne exitVBL ; skip doing VBL things each 6 frames in Amerika, Amerika
|
bne SkippedIfNTSC ; skip doing VBL things each 6 frames in Amerika, Amerika
|
||||||
; We're all living in Amerika, Coca Cola, Wonderbra
|
; We're all living in Amerika, Coca Cola, Wonderbra
|
||||||
|
|
||||||
itsPAL
|
itsPAL
|
||||||
; pressTimer is trigger tick counter. always 50 ticks / s
|
; pressTimer is trigger tick counter. always 50 ticks / s
|
||||||
bit:smi:inc pressTimer ; timer halted if >127. max time measured 2.5 s
|
bit:smi:inc pressTimer ; timer halted if >127. max time measured 2.5 s
|
||||||
|
|
||||||
|
SkippedIfNTSC
|
||||||
|
|
||||||
bit RMT_blocked
|
bit RMT_blocked
|
||||||
bmi SkipRMTVBL
|
bmi SkipRMTVBL
|
||||||
@@ -1228,7 +1247,6 @@ lab2
|
|||||||
jsr RASTERMUSICTRACKER+3 ;1 play
|
jsr RASTERMUSICTRACKER+3 ;1 play
|
||||||
; ------- RMT -------
|
; ------- RMT -------
|
||||||
SkipRMTVBL
|
SkipRMTVBL
|
||||||
exitVBL
|
|
||||||
bit ScrollFlag
|
bit ScrollFlag
|
||||||
bpl EndOfCreditsVBI
|
bpl EndOfCreditsVBI
|
||||||
CreditsVBI
|
CreditsVBI
|
||||||
@@ -1812,7 +1830,7 @@ TankFont
|
|||||||
org $b000
|
org $b000
|
||||||
MODUL ; equ $b000 ;address of RMT module
|
MODUL ; equ $b000 ;address of RMT module
|
||||||
;opt h- ;RMT module is standard Atari binary file already
|
;opt h- ;RMT module is standard Atari binary file already
|
||||||
ins "artwork/sfx/scorch_str6.rmt",+6 ;include music RMT module
|
ins "artwork/sfx/scorch_str6-NTSC.rmt",+6 ;include music RMT module
|
||||||
;opt h+
|
;opt h+
|
||||||
MODULEND
|
MODULEND
|
||||||
;----------------------------------------------
|
;----------------------------------------------
|
||||||
|
|||||||
BIN
Binary file not shown.
BIN
Binary file not shown.
Reference in New Issue
Block a user