#include <avr/io.h> #include "global_defs.inc" ; either expected by linker, equivalent to the "old style" .ORG 0 ; or alternatively generated by the C/C++ compiler on its own accord .TEXT _start: reset_vector: jmp start ; interrupt table would follow *** here *** if there are any interrupt services ; 32bits per entry, up to 34 entries ; this is the part of the loader program that initializes the stack etc. .TEXT start: ldi R16, 0xFF & (RAMEND>>8) out _SFR_IO_ADDR(SPH), R16 ldi R16, 0xFF & RAMEND out _SFR_IO_ADDR(SPL), R16 jmp main