;Initialization IO lines
init_io:
	ldi	tmp1,$ff
	out	ddrb,tmp1	; portb out mode
	ret
;Toggle Portb High nibble
toggle1:	
	in	tmp1,portb
	mov	tmp2,tmp1
	andi	tmp2,$0f
	com	tmp1
	andi	tmp1,$f0
	or	tmp1,tmp2
	out	portb,tmp1
	ret
;Toggle Portb Low nibble
toggle2:	
	in	tmp1,portb
	mov	tmp2,tmp1
	andi	tmp2,$f0
	com	tmp1
	andi	tmp1,$0f
	or	tmp1,tmp2
	out	portb,tmp1
	ret