                        .module SWITCHTEST.c
                        .area text
                ;  IX -> 0,x
                ;         helper -> +2,x
 202F            _main::
 202F  BD20BE            jsr __enterb
 2032  04                .byte 0x4
 2033            ; #include <stdio.h>
 2033            ; #include <hc11.h>
 2033            ; #define       limitswitches *(unsigned char volatile *) (0xB5C0)
 2033            ; void main (void)
 2033            ; {
 2033            ;  int helper = 0;
 2033  CC0000            ldd #0
 2036  ED02              std 2,x
 2038  2016              bra L5
 203A            L4:
 203A            	; vol
 203A  F6B5C0            ldab 0xb5c0
 203D  4F                clra
 203E  8400              anda #0
 2040  C4F0              andb #240
 2042  ED02              std 2,x
 2044  EC02              ldd 2,x
 2046  37                pshb
 2047  36                psha
 2048  CC2059            ldd #L7
 204B  BD247D            jsr _printf
 204E  1838              puly
 2050            L5:
 2050            ;   while (1)
 2050  20E8              bra L4
 2052            X0:
 2052            ;   {
 2052            ;    	helper = limitswitches & 0xF0;
 2052            ;   	 printf (" %X \n", helper );
 2052            ;   }
 2052            ; }  
 2052            L3:
 2052  08                inx
 2053  08                inx
 2054  08                inx
 2055  08                inx
 2056  35                txs
 2057  38                pulx
 2058                    .dbline 0 ; func end
 2058  39                rts
 2059            L7:
 2059  202558200A00      .byte 32,37,'X,32,10,0
