/* * DiskLoader.cpp */ #include "Platform.h" //extern "C" void entrypoint(void) __attribute__ ((naked)) __attribute__ ((section (".vectors"))); void entrypoint(void) { asm volatile ( // "eor r1, r1\n" // Zero register // "out 0x3F, r1\n" // SREG // "ldi r28, 0xFF\n" // "ldi r29, 0x0A\n" // "out 0x3E, r29\n" // SPH // "out 0x3D, r28\n" // SPL "rjmp main" // Stack is all set up, start the main code ::); } ISR(BADISR_vect) { L_LED_ON(); } int main(void) __attribute__ ((naked)); int main() { wdt_disable(); BOARD_INIT(); asm volatile ( "ldi r16, 0x01\n" // (1<