                         .module PLOTLITE.C
                         .area text
 0000                 _SetupPlot::
                       ; void SetupPlot(void);
                       ; void Delay(int);
                       ; 
                       ; void SetupPlot(void){
                       ;      printf("!RSET\r"); //reset plot
 0000 CC00E3            ldd #L2
 0003 160000            jsr _printf
                       ;      printf("!TITL MC68HC12 DEMO\r"); //Caption form
 0006 CC00CE            ldd #L3
 0009 160000            jsr _printf
                       ;      printf("!PNTS 50000\r"); //50000 sample data points
 000C CC00C1            ldd #L4
 000F 160000            jsr _printf
                       ;      printf("!TMAX 60\r"); //Max 60 seconds
 0012 CC00B7            ldd #L5
 0015 160000            jsr _printf
                       ;      printf("!SPAN 0,255\r"); //0-255 degrees
 0018 CC00AA            ldd #L6
 001B 160000            jsr _printf
                       ;      printf("!AMUL 1\r"); //Multiply data by 1
 001E CC00A1            ldd #L7
 0021 160000            jsr _printf
                       ;      printf("!DELD\r"); //'Delete Data File
 0024 CC009A            ldd #L8
 0027 160000            jsr _printf
                       ;      printf("!SAVD ON\r"); //Save Data
 002A CC0090            ldd #L9
 002D 160000            jsr _printf
                       ;      printf("!TSMP ON\r"); //Time Stamp On
 0030 CC0086            ldd #L10
 0033 160000            jsr _printf
                       ;      printf("!CLMM\r"); //Clear Min/Max
 0036 CC007F            ldd #L11
 0039 160000            jsr _printf
                       ;      printf("!CLRM\r"); //Clear Messages
 003C CC0078            ldd #L12
 003F 160000            jsr _printf
                       ;      printf("!PLOT ON\r"); //Start Plotting
 0042 CC006E            ldd #L13
 0045 160000            jsr _printf
                       ; }
 0048                 L1:
 0048                   .dbline 0 ; func end
 0048 3D                rts
                       ;              T -> -2,x
                       ;           Time -> 2,x
 0049                 _Delay::
 0049 3B                pshd
 004A 34                pshx
 004B B775              tfr s,x
 004D 1B9E              leas -2,sp
                       ; 
                       ; void Delay(int Time){
                       ;  int T = 0;
 004F CC0000            ldd #0
 0052 6C1E              std -2,x
 0054 CC0000            ldd #0
 0057 6C1E              std -2,x
 0059 2007              bra L18
 005B                 L15:
 005B                 L16:
 005B EC1E              ldd -2,x
 005D C30001            addd #1
 0060 6C1E              std -2,x
 0062                 L18:
                       ;  for(T = 0; T<Time; T++);
 0062 EC1E              ldd -2,x
 0064 AC02              cpd 2,x
 0066 2DF3              blt L15
                       ; }
 0068                 L14:
 0068 B757              tfr x,s
 006A 30                pulx
 006B 1B82              leas 2,sp
 006D                   .dbline 0 ; func end
 006D 3D                rts
 006E                 L13:
 006E 21504C4F54204F4E0D00   .byte 33,'P,'L,'O,'T,32,'O,'N,13,0
 0078                 L12:
 0078 21434C524D0D00    .byte 33,'C,'L,'R,'M,13,0
 007F                 L11:
 007F 21434C4D4D0D00    .byte 33,'C,'L,'M,'M,13,0
 0086                 L10:
 0086 2154534D50204F4E0D00   .byte 33,'T,'S,'M,'P,32,'O,'N,13,0
 0090                 L9:
 0090 2153415644204F4E0D00   .byte 33,'S,'A,'V,'D,32,'O,'N,13,0
 009A                 L8:
 009A 2144454C440D00    .byte 33,'D,'E,'L,'D,13,0
 00A1                 L7:
 00A1 21414D554C20310D00     .byte 33,'A,'M,'U,'L,32,49,13,0
 00AA                 L6:
 00AA 215350414E20302C3235350D00     .byte 33,'S,'P,'A,'N,32,48,44,50,53,53,13,0
 00B7                 L5:
 00B7 21544D41582036300D00   .byte 33,'T,'M,'A,'X,32,54,48,13,0
 00C1                 L4:
 00C1 21504E54532035303030300D00     .byte 33,'P,'N,'T,'S,32,53,48,48,48,48,13,0
 00CE                 L3:
 00CE 215449544C204D433638484331322044   .byte 33,'T,'I,'T,'L,32,'M,'C,54,56,'H,'C,49,50,32,'D
 00DE 454D4F0D00        .byte 'E,'M,'O,13,0
 00E3                 L2:
 00E3 21525345540D00    .byte 33,'R,'S,'E,'T,13,0
