crtnutram.s 314 B

12345678910111213141516171819
  1. ; make sure to assemble w/ -n flag, e.g.
  2. ; iasavr -n crt...
  3. .include "area.s"
  4. .text
  5. __start:: ; entry point
  6. .include "extram.s"
  7. .include "init.s"
  8. ; call user main routine
  9. call _NutInit
  10. _exit::
  11. rjmp _exit
  12. ; interrupt vectors. The first entry is the reset vector
  13. ;
  14. .area vector(abs)
  15. .org 0
  16. jmp __start