; BlueDataDistributor - data distribution module from ethernet to 32 serial ports
; version 0.1 date 2006-09-18
; Copyright (C) 2006 Stefan Schuermans <stefan@blinkenarea.org>
; a BlinkenArea project - http://www.blinkenarea.org/
#include <avr/io.h>
.section .text
; output 0 = PB0
; output 1 = PG2
; output 2 = PB2
; output 3 = PB3
; output 4 = PB4
; output 5 = PB5
; output 6 = PB6
; output 7 = PB7
; output 8 = PF0
; output 9 = PF1
; output 10 = PF2
; output 11 = PF3
; output 12 = PF4
; output 13 = PF5
; output 14 = PF6
; output 15 = PF7
; output 16 = PD0
; output 17 = PD1
; output 18 = PD2
; output 19 = PD3
; output 20 = PD4
; output 21 = PD5
; output 22 = PD6
; output 23 = PD7
; output 24 = PG0
; output 25 = PG1
; output 26 = PE2
; output 27 = PE3
; output 28 = PG4
; output 29 = PE5
; output 30 = PE6
; output 31 = PE7
.macro generatebit sourcemask, destreg, destbit
ld R16, Z+