template.c 334 B

1234567891011121314151617181920212223
  1. #define word char
  2. #include "lib/math.c"
  3. #include "lib/stdlib.c"
  4. #include "lib/sys.c"
  5. int main()
  6. {
  7. bdos_println("Template program.");
  8. return 'q';
  9. }
  10. void interrupt()
  11. {
  12. // Handle all interrupts
  13. word i = get_int_id();
  14. switch(i)
  15. {
  16. case INTID_TIMER1:
  17. timer1Value = 1; // Notify ending of timer1
  18. break;
  19. }
  20. }