添加一些关于midi播放的项目

This commit is contained in:
terryLP
2025-03-24 14:30:56 +08:00
parent e31eb22077
commit 498b4ef13b
699 changed files with 186162 additions and 1 deletions
@@ -0,0 +1,33 @@
#include "SynthCore.h"
#include "AsmCommon.h"
.section .bss
.global currentTick
currentTick:
.skip 4
.global decayGenTick
decayGenTick:
.skip 1
.section .text
UpdateTick:
sec
lds t0l,currentTick
adc t0l,zero
sts currentTick,t0l
lds t0l,currentTick+1
adc t0l,zero
sts currentTick+1,t0l
lds t0l,currentTick+2
adc t0l,zero
sts currentTick+2,t0l
lds t0l,currentTick+3
adc t0l,zero
sts currentTick+3,t0l
lds t0l,decayGenTick
cpi t0l,DECAY_TIME_FACTOR
brsh updateDecayGenTickEnd ; BRSH Branch if Same or Higher (Unsigned)
inc t0l
sts decayGenTick,t0l
updateDecayGenTickEnd: