                         .module Main.c
                         .area text
 0000                 _main::
 0000 34                pshx
 0001 B775              tfr s,x
 0003 1B9E              leas -2,sp
                       ; #include <hc12.h>
                       ; 
                       ; void main(void){
                       ;      
                       ;      ATDCTL2 = 0x80;
 0005 C680              ldab #128
 0007 7B0062            stab 0x62
                       ;      ATDCTL4 = 0x00;
 000A 790064            clr 0x64
                       ; 
                       ;      Delay(800);
 000D CC0320            ldd #800
 0010 160000            jsr _Delay
                       ;      setbaud(BAUD9600);
 0013 CC0034            ldd #52
 0016 160000            jsr _setbaud
                       ;      SetupPlot();
 0019 160000            jsr _SetupPlot
 001C 201B              bra L5
 001E                 L4:
 001E CC2328            ldd #9000
 0021 160000            jsr _Delay
                         ; vol
 0024 F60070            ldab 0x70
 0027 87                clra
 0028 6C80              std 0,sp
 002A CC0041            ldd #L7
 002D 160000            jsr _printf
 0030 CC003F            ldd #L8
 0033 160000            jsr _printf
 0036 790065            clr 0x65
 0039                 L5:
                       ;      
                       ;      
                       ;      while(1)
 0039 20E3              bra L4
 003B                 X0:
                       ;      {
                       ;         Delay(9000);
                       ;         printf("%d",ADR0H);
                       ;         printf("\r");
                       ;         ATDCTL5 = 0x00;
                       ;     }
                       ; }
 003B                 L3:
 003B B757              tfr x,s
 003D 30                pulx
 003E                   .dbline 0 ; func end
 003E 3D                rts
 003F                 L8:
 003F 0D00              .byte 13,0
 0041                 L7:
 0041 256400            .byte 37,'d,0
