crtnut.s 293 B

123456789101112131415161718
  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 "init.s"
  7. ; call user main routine
  8. call _NutInit
  9. _exit::
  10. rjmp _exit
  11. ; interrupt vectors. The first entry is the reset vector
  12. ;
  13. .area vector(abs)
  14. .org 0
  15. jmp __start