update ATMlib
This commit is contained in:
parent
1085fb7858
commit
64441b810c
|
@ -7,7 +7,7 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/TEAMarg/ATMlib.git"
|
"url": "https://github.com/TEAMarg/ATMlib.git"
|
||||||
},
|
},
|
||||||
"version": "1.2.5",
|
"version": "1.2.6",
|
||||||
"exclude": "extras",
|
"exclude": "extras",
|
||||||
"frameworks": "arduino",
|
"frameworks": "arduino",
|
||||||
"platforms": "atmelavr"
|
"platforms": "atmelavr"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name=ATMlib
|
name=ATMlib
|
||||||
version=1.2.5
|
version=1.2.6
|
||||||
author=TEAM a.r.g., Davey Taylor aka STG, Joeri Gantois aka JO3RI
|
author=TEAM a.r.g., Davey Taylor aka STG, Joeri Gantois aka JO3RI
|
||||||
maintainer=info@TEAM_arg.org
|
maintainer=info@TEAM_arg.org
|
||||||
sentence=The Arduboy Tracker Music library.
|
sentence=The Arduboy Tracker Music library.
|
||||||
|
|
|
@ -28,7 +28,7 @@ byte ChannelActiveMute = 0b11110000;
|
||||||
extern uint16_t cia;
|
extern uint16_t cia;
|
||||||
|
|
||||||
// Exports
|
// Exports
|
||||||
osc_t osc[4];
|
osc_t __attribute__((used)) osc[4];
|
||||||
|
|
||||||
|
|
||||||
const word noteTable[64] PROGMEM = {
|
const word noteTable[64] PROGMEM = {
|
||||||
|
|
|
@ -63,15 +63,12 @@ ISR(TIMER4_OVF_vect, ISR_NAKED) { \
|
||||||
"push r2 " "\n\t" \
|
"push r2 " "\n\t" \
|
||||||
"in r2, __SREG__ " "\n\t" \
|
"in r2, __SREG__ " "\n\t" \
|
||||||
"push r18 " "\n\t" \
|
"push r18 " "\n\t" \
|
||||||
"lds r18, half \n\t" \
|
"lds r18, half " "\n\t" \
|
||||||
"com r18 \n\t" \
|
"com r18 " "\n\t" \
|
||||||
"sts half, r18 \n\t" \
|
"sts half, r18 " "\n\t" \
|
||||||
"breq continue \n\t" \
|
"breq 1f " "\n\t" \
|
||||||
"pop r18 " "\n\t" \
|
"rjmp 3f " "\n\t" \
|
||||||
"out __SREG__, r2 " "\n\t" \
|
"1: " "\n\t" \
|
||||||
"pop r2 " "\n\t" \
|
|
||||||
"reti " "\n\t" \
|
|
||||||
"continue: \n\t" \
|
|
||||||
"push r27 " "\n\t" \
|
"push r27 " "\n\t" \
|
||||||
"push r26 " "\n\t" \
|
"push r26 " "\n\t" \
|
||||||
"push r0 " "\n\t" \
|
"push r0 " "\n\t" \
|
||||||
|
@ -154,14 +151,8 @@ ISR(TIMER4_OVF_vect, ISR_NAKED) { \
|
||||||
"breq call_playroutine " "\n\t" \
|
"breq call_playroutine " "\n\t" \
|
||||||
"sts cia_count+1, r27 " "\n\t" \
|
"sts cia_count+1, r27 " "\n\t" \
|
||||||
"sts cia_count, r26 " "\n\t" \
|
"sts cia_count, r26 " "\n\t" \
|
||||||
"pop r1 " "\n\t" \
|
"rjmp 2f " "\n\t" \
|
||||||
"pop r0 " "\n\t" \
|
\
|
||||||
"pop r26 " "\n\t" \
|
|
||||||
"pop r27 " "\n\t" \
|
|
||||||
"pop r18 " "\n\t" \
|
|
||||||
"out __SREG__, r2 " "\n\t" \
|
|
||||||
"pop r2 " "\n\t" \
|
|
||||||
"reti " "\n\t" \
|
|
||||||
"call_playroutine: " "\n\t" \
|
"call_playroutine: " "\n\t" \
|
||||||
\
|
\
|
||||||
"lds r27, cia+1 " "\n\t" \
|
"lds r27, cia+1 " "\n\t" \
|
||||||
|
@ -192,11 +183,12 @@ ISR(TIMER4_OVF_vect, ISR_NAKED) { \
|
||||||
"pop r21 " "\n\t" \
|
"pop r21 " "\n\t" \
|
||||||
"pop r20 " "\n\t" \
|
"pop r20 " "\n\t" \
|
||||||
"pop r19 " "\n\t" \
|
"pop r19 " "\n\t" \
|
||||||
\
|
"2: " "\n\t" \
|
||||||
"pop r1 " "\n\t" \
|
"pop r1 " "\n\t" \
|
||||||
"pop r0 " "\n\t" \
|
"pop r0 " "\n\t" \
|
||||||
"pop r26 " "\n\t" \
|
"pop r26 " "\n\t" \
|
||||||
"pop r27 " "\n\t" \
|
"pop r27 " "\n\t" \
|
||||||
|
"3: " "\n\t" \
|
||||||
"pop r18 " "\n\t" \
|
"pop r18 " "\n\t" \
|
||||||
"out __SREG__, r2 " "\n\t" \
|
"out __SREG__, r2 " "\n\t" \
|
||||||
"pop r2 " "\n\t" \
|
"pop r2 " "\n\t" \
|
||||||
|
@ -217,15 +209,12 @@ ISR(TIMER4_OVF_vect, ISR_NAKED) { \
|
||||||
"push r2 " "\n\t" \
|
"push r2 " "\n\t" \
|
||||||
"in r2, __SREG__ " "\n\t" \
|
"in r2, __SREG__ " "\n\t" \
|
||||||
"push r18 " "\n\t" \
|
"push r18 " "\n\t" \
|
||||||
"lds r18, half \n\t" \
|
"lds r18, half " "\n\t" \
|
||||||
"com r18 \n\t" \
|
"com r18 " "\n\t" \
|
||||||
"sts half, r18 \n\t" \
|
"sts half, r18 " "\n\t" \
|
||||||
"breq continue \n\t" \
|
"breq 1f " "\n\t" \
|
||||||
"pop r18 " "\n\t" \
|
"rjmp 3f " "\n\t" \
|
||||||
"out __SREG__, r2 " "\n\t" \
|
"1: " "\n\t" \
|
||||||
"pop r2 " "\n\t" \
|
|
||||||
"reti " "\n\t" \
|
|
||||||
"continue: \n\t" \
|
|
||||||
"push r27 " "\n\t" \
|
"push r27 " "\n\t" \
|
||||||
"push r26 " "\n\t" \
|
"push r26 " "\n\t" \
|
||||||
"push r0 " "\n\t" \
|
"push r0 " "\n\t" \
|
||||||
|
@ -309,14 +298,8 @@ ISR(TIMER4_OVF_vect, ISR_NAKED) { \
|
||||||
"breq call_playroutine " "\n\t" \
|
"breq call_playroutine " "\n\t" \
|
||||||
"sts cia_count+1, r27 " "\n\t" \
|
"sts cia_count+1, r27 " "\n\t" \
|
||||||
"sts cia_count, r26 " "\n\t" \
|
"sts cia_count, r26 " "\n\t" \
|
||||||
"pop r1 " "\n\t" \
|
"rjmp 2f " "\n\t" \
|
||||||
"pop r0 " "\n\t" \
|
\
|
||||||
"pop r26 " "\n\t" \
|
|
||||||
"pop r27 " "\n\t" \
|
|
||||||
"pop r18 " "\n\t" \
|
|
||||||
"out __SREG__, r2 " "\n\t" \
|
|
||||||
"pop r2 " "\n\t" \
|
|
||||||
"reti " "\n\t" \
|
|
||||||
"call_playroutine: " "\n\t" \
|
"call_playroutine: " "\n\t" \
|
||||||
\
|
\
|
||||||
"lds r27, cia+1 " "\n\t" \
|
"lds r27, cia+1 " "\n\t" \
|
||||||
|
@ -347,11 +330,12 @@ ISR(TIMER4_OVF_vect, ISR_NAKED) { \
|
||||||
"pop r21 " "\n\t" \
|
"pop r21 " "\n\t" \
|
||||||
"pop r20 " "\n\t" \
|
"pop r20 " "\n\t" \
|
||||||
"pop r19 " "\n\t" \
|
"pop r19 " "\n\t" \
|
||||||
\
|
"2: " "\n\t" \
|
||||||
"pop r1 " "\n\t" \
|
"pop r1 " "\n\t" \
|
||||||
"pop r0 " "\n\t" \
|
"pop r0 " "\n\t" \
|
||||||
"pop r26 " "\n\t" \
|
"pop r26 " "\n\t" \
|
||||||
"pop r27 " "\n\t" \
|
"pop r27 " "\n\t" \
|
||||||
|
"3: " "\n\t" \
|
||||||
"pop r18 " "\n\t" \
|
"pop r18 " "\n\t" \
|
||||||
"out __SREG__, r2 " "\n\t" \
|
"out __SREG__, r2 " "\n\t" \
|
||||||
"pop r2 " "\n\t" \
|
"pop r2 " "\n\t" \
|
||||||
|
|
Loading…
Reference in New Issue