                         .module test.c
 0000                   .dbfile test.c
                         .area data
 0000                 _drew::
 0000                   .blkw 1
                         .area idata
 0000 0000              .word _interrupt_vectors
                         .area text
                       ;  IX -> 0,x
 0000                 _TOC2_isr::
 0000                   .dbfile test.c
 0000                   .dbfunc TOC2_isr
 0000                   .dbline 33
                       ; 
                       ; /*************************** End of Interrupts **************************/
                       ; 
                       ; /************************** Includes ************************************/
                       ; //#include <stdio.h>
                       ; //#include <tjpbase.h>
                       ; //#include <isrdecl.h>
                       ; #include <analog.h>
                       ; #include <vectors.h>
                       ; #include <mil.h>
                       ; #include <hc11.h>
                       ; /************************ End of includes *******************************/
                       ; //#define pulse_handler TOC2_isr
                       ; #define tolerance 10 
                       ; #define valve_sensor analog(1)
                       ; /**************************** End of Constants **************************/
                       ; 
                       ; /*************************** Interrupts *********************************/
                       ; //#pragma interrupt_handler TOC2_isr
                       ; //#pragma interrupt_handler TOC2_isr
                       ; /************************** Global Variables*****************************/
                       ; unsigned int duty_cycle;    //duty_cycle in e clocks
                       ; unsigned int period;        //period in e clocks
                       ; /************************ End of Global Variables ***********************/
                       ; 
                       ; 
                       ; 
                       ; void TOC2_isr();    //This is the function executed at each TOC2_isr
                       ; /******************** End of Function Declarations  *********************/
                       ; 
                       ; 
                       ; void TOC2_isr()
                       ; {printf("hi\n");
 0000 CC000F            ldd #L3
 0003 BD0000            jsr _printf
 0006                   .dbline 34
                       ;  CLEAR_FLAG(TFLG1,0x40);
 0006 18CE1023          ldy #0x1023
 000A 181D00BF          bclr 0,y,#0xbf
 000E                   .dbline 35
                       ;  }
 000E                 L2:
 000E 39                rts
                         .area bss
 0000                 _period::
 0000                   .blkb 2
 0002                 _duty_cycle::
 0002                   .blkb 2
                         .area text
 000F                 L3:
 000F 68690A00          .byte 'h,'i,10,0
