1
0

p.c 328 B

123456789101112131415161718
  1. int main()
  2. {
  3. int *p = (int *)65000; // set address
  4. *p = 0; // write value
  5. while (*p < 120); // wait 120 frames (two seconds)
  6. return *p;
  7. }
  8. void interrupt()
  9. {
  10. // TODO: check for intID 4
  11. // set pointer to manual address
  12. int *p = (int *)65000;
  13. // write value at pointer address
  14. *p += 1;
  15. }