Bug1

Bugs found

  1. file main.cc: the for loop is closed after at the statement 'return 1' at line 6, causing the program to exit right after it enters the first time at the loop. The loop should be closed before the retunr statement.
  2. file system.cc: the inline asm at line 10 is setting the Two's Complement Overflow Flag (bit 3). It should set the the Global Interrupt Enable (bit 7).
  3. file system.cc: the count static variable at handle_timer0 method is not set to zero after it reaches 60, so the condition at line 31 'if (count == 60)' will be true only once.
  4. file avr8.h: all the variables at class AT90S should not be commented because the class will be mapped incorrectly in memory.
  5. file avr8.h: the enumeration at line 125 should map ports addresses but it's mapping memory addresses.
  6. file time.h: inline asm at lines 22 and 27 have inverted parameters.
  7. file handler.h: missing extern "C" to avoid problem at linkage.
  8. file my_handle.cc: should use reti at lines 7 and 14 because it's a return from interrupt.
  9. file context.h: the preprocessor does not accept a space after the backlash at line 38.
  10. file makefile: should use -fomit-frame-pointer