                         .module LEDCONtest.c
                         .area text
 0000                 L4:
 0000 B580              .word -19072
 0002 B584              .word -19068
 0004 B585              .word -19067
 0006 B586              .word -19066
 0008 B587              .word -19065
 000A 000000000000      .byte 0,0,0,0,0,0
 0010                 L5:
 0010 B588              .word -19064
 0012 B58C              .word -19060
 0014 B58D              .word -19059
 0016 B58E              .word -19058
 0018 B58F              .word -19057
 001A 000000000000      .byte 0,0,0,0,0,0
                       ;  IX -> 0,x
                       ;        LEDCON3 -> +2,x
                       ;        LEDCON2 -> +18,x
 0020                 _main::
 0020 BD0000            jsr __enterb
 0023 22                .byte 0x22
                       ; #include <hc11.h>
                       ; #include <stdio.h>
                       ; 
                       ; 
                       ; #define LEDCON0 *(unsigned char volatile *)(0xb580)
                       ; #define LEDDIGIT3 *(unsigned char volatile *)(0xb587)
                       ; #define LEDDIGIT2 *(unsigned char volatile *)(0xb586)
                       ; #define LEDDIGIT1 *(unsigned char volatile *)(0xb585)
                       ; #define LEDDIGIT0 *(unsigned char volatile *)(0xb584)
                       ; #define LEDCON1   *(unsigned char volatile *)(0xb588)
                       ; #define LEDDIGIT4 *(unsigned char volatile *)(0xb58c)
                       ; #define LEDDIGIT5 *(unsigned char volatile *)(0xb58d)
                       ; #define LEDDIGIT6 *(unsigned char volatile *)(0xb58e)
                       ; #define LEDDIGIT7 *(unsigned char volatile *)(0xb58f)
                       ; void main (void)
                       ; {    
                       ;      int LEDCON2[8]={0xb580,0xb584,0xb585,0xb586,0xb587};
 0024 EC00              ldd 0,x
 0026 C30012            addd #18
 0029 18CE0000          ldy #L4
 002D 3C                pshx
 002E 8F                xgdx
 002F CC0010            ldd #16
 0032 BD0000            jsr __asgnblk
 0035 38                pulx
                       ;      int LEDCON3[8]={0xb588,0xb58c,0xb58d,0xb58e,0xb58f};
 0036 EC00              ldd 0,x
 0038 C30002            addd #2
 003B 18CE0010          ldy #L5
 003F 3C                pshx
 0040 8F                xgdx
 0041 CC0010            ldd #16
 0044 BD0000            jsr __asgnblk
 0047 38                pulx
                       ;      LEDCON0 = 0x02;
 0048 C602              ldab #2
 004A F7B580            stab 0xb580
                       ;      LEDCON1 = 0X02;
 004D C602              ldab #2
 004F F7B588            stab 0xb588
                       ;      
                       ;          
                       ; }
 0052                 L3:
 0052 8F                xgdx
 0053 C30022            addd #34
 0056 8F                xgdx
 0057 35                txs
 0058 38                pulx
 0059                   .dbline 0 ; func end
 0059 39                rts
