                        .module test2.c
                        .area text
 0000           L4:
 0000 003F              .word 63
 0002 0006              .word 6
 0004 005B              .word 91
 0006 004F              .word 79
 0008 0066              .word 102
 000A 006D              .word 109
 000C 007D              .word 125
 000E 0007              .word 7
 0010 007F              .word 127
 0012 006F              .word 111
 0014 0077              .word 119
 0016 007C              .word 124
 0018 0039              .word 57
 001A 005E              .word 94
 001C 0079              .word 121
 001E 0071              .word 113
 0020           ;  lreg1 -> -4,x
 0020           ;  lreg2 -> -8,x
 0020           ;            out -> -46,x
 0020           ;              t -> -14,x
 0020           ;          delay -> -12,x
 0020           _main::
 0020 34                pshx
 0021 B775              tfr s,x
 0023 1BF1D0            leas -48,sp
 0026           ; #include<mc9S12dp256.h>
 0026           ; #include<stdio.h>
 0026           ; 
 0026           ; 
 0026           ; void main(void)
 0026           ; {
 0026           ; 
 0026           ;   int t;
 0026           ;   
 0026           ;   int out[16] = {0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,
 0026 19E1D2            leay -46,x
 0029 B7C6              xgdy
 002B CD0000            ldy #L4
 002E 34                pshx
 002F B745              tfr d,x
 0031 CC0010            ldd #16
 0034           X0:
 0034 18027131          movw 2,y+,2,x+
 0038 0434F9            dbne d,X0
 003B 30                pulx
 003C           ;     0x39,0x5e,0x79,0x71};
 003C           ;   
 003C           ;   long int delay;
 003C           ; 
 003C           ;   DDRH=0xff;
 003C C6FF              ldab #255
 003E 7B0262            stab 0x262
 0041 18200079          lbra L6
 0045           L5:
 0045           ;   
 0045           ;   while(1)
 0045           ;   {  
 0045           ;     for (t=0; t<16; t++)
 0045 CC0000            ldd #0
 0048 6C12              std -14,x
 004A           L8:
 004A           ;     {
 004A           ;       PTH=out[t];
 004A 19E1D2            leay -46,x
 004D 6DE1D0            sty -48,x
 0050 EC12              ldd -14,x
 0052 59                lsld
 0053 E3E1D0            addd -48,x
 0056 B7C6              xgdy
 0058 EC40              ldd 0,y
 005A 7B0260            stab 0x260
 005D CD00CE            ldy #L16
 0060 1802401C          movw 0,y,-4,x
 0064 1802421E          movw 2,y,-2,x
 0068 1914              leay -12,x
 006A 18021C40          movw -4,x,0,y
 006E 18021E42          movw -2,x,2,y
 0072           L12:
 0072           L13:
 0072 1914              leay -12,x
 0074 1802401C          movw 0,y,-4,x
 0078 1802421E          movw 2,y,-2,x
 007C CD00CA            ldy #L17
 007F 18024018          movw 0,y,-8,x
 0083 1802421A          movw 2,y,-6,x
 0087 160000            jsr __ladd
 008A 1914              leay -12,x
 008C 18021C40          movw -4,x,0,y
 0090 18021E42          movw -2,x,2,y
 0094 1914              leay -12,x
 0096 1802401C          movw 0,y,-4,x
 009A 1802421E          movw 2,y,-2,x
 009E CD00C6            ldy #L18
 00A1 18024018          movw 0,y,-8,x
 00A5 1802421A          movw 2,y,-6,x
 00A9 160000            jsr __lcmp
 00AC 2DC4              blt L12
 00AE           L9:
 00AE EC12              ldd -14,x
 00B0 C30001            addd #1
 00B3 6C12              std -14,x
 00B5 EC12              ldd -14,x
 00B7 8C0010            cpd #16
 00BA 182DFF8C          lblt L8
 00BE           L6:
 00BE 1820FF83          lbra L5
 00C2           X1:
 00C2           ; 	  for (delay=0; delay<100000; delay++);
 00C2           ; 	 
 00C2           ;     }
 00C2           ;   
 00C2           ;   }
 00C2           ; }
 00C2           L3:
 00C2 B757              tfr x,s
 00C4 30                pulx
 00C5                   .dbline 0 ; func end
 00C5 3D                rts
 00C6           L18:
 00C6 000186A0          .word 1,34464
 00CA           L17:
 00CA 00000001          .word 0,1
 00CE           L16:
 00CE 00000000          .word 0,0
