This repository was archived by the owner on Sep 30, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -77,8 +77,8 @@ extern intptr_t squawk_register;
7777extern uint16_t cia;
7878
7979// Exports
80- osc_t osc[4 ];
81- uint8_t pcm = 128 ;
80+ __attribute__ ((used)) osc_t osc[4];
81+ __attribute__ ((used)) uint8_t pcm = 128;
8282
8383// ProTracker period tables
8484const uint16_t period_tbl[84 ] PROGMEM = {
@@ -371,7 +371,7 @@ void SquawkSynth::stop() {
371371}
372372
373373// Progress module by one tick
374- void squawk_playroutine () {
374+ __attribute__ ((used)) void squawk_playroutine () {
375375 static bool lockout = false ;
376376
377377 if (!order_count) return ;
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ extern void squawk_playroutine() asm("squawk_playroutine");
117117// uses 132 cycles (not counting playroutine)
118118// ~1/3 CPU @ 44kHz on 16MHz
119119#define SQUAWK_CONSTRUCT_ISR (TARGET_REGISTER ) \
120- uint16_t cia, cia_count; \
120+ __attribute__ ((used)) uint16_t cia, cia_count; \
121121intptr_t squawk_register = (intptr_t )&TARGET_REGISTER; \
122122ISR (TIMER1_COMPA_vect, ISR_NAKED) { \
123123 asm volatile ( \
You can’t perform that action at this time.
0 commit comments