                         .module test.c
--- 0000                   .dbfile test.c
                         .area data
 955E                  _drew::
 955E                    .blkw 1
                         .area idata
--- 0000 0000              .word _interrupt_vectors
                         .area text
                       ;  IX -> 0,x
 9549                  _TOC2_isr::
 9549                    .dbfile test.c
 9549                    .dbfunc TOC2_isr
 9549                    .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");
 9549  CC9558            ldd #L3
 954C  BD9178            jsr _printf
 954F                    .dbline 34
                       ;  CLEAR_FLAG(TFLG1,0x40);
 954F  18CE1023          ldy #0x1023
 9553  181D00BF          bclr 0,y,#0xbf
 9557                    .dbline 35
                       ;  }
 9557                  L2:
 9557  39                rts
                         .area bss
 9577                  _period::
 9577                    .blkb 2
 9579                  _duty_cycle::
 9579                    .blkb 2
                         .area text
--- 000F                 L3:
--- 000F 68690A00          .byte 'h,'i,10,0
