	.module SWITCHTEST.c
	.area text
;  IX -> 0,x
;         helper -> +2,x
_main::
	jsr __enterb
	.byte 0x4
; #include <stdio.h>
; #include <hc11.h>
; #define	limitswitches *(unsigned char volatile *) (0xB5C0)
; void main (void)
; {
;  int helper = 0;
	ldd #0
	std 2,x
	bra L5
L4:
	; vol
	ldab 0xb5c0
	clra
	anda #0
	andb #240
	std 2,x
	ldd 2,x
	pshb
	psha
	ldd #L7
	jsr _printf
	puly
L5:
;   while (1)
	bra L4
X0:
;   {
;    	helper = limitswitches & 0xF0;
;   	 printf (" %X \n", helper );
;   }
; }  
L3:
	inx
	inx
	inx
	inx
	txs
	pulx
	.dbline 0 ; func end
	rts
L7:
	.byte 32,37,'X,32,10,0
