;------------------------------------------------------------------------------
		ORG ((HIGH $)+1) * 100H
		; ***********************************************************************
		; Data ID Table. This table is called from the receive routine after
		; the Identifier byte is received
		; Data Format
		; 7 6 5 4 3 2 1 0
		; | | | | |_____|___ Message length (0 = undefined ID)
		; | | |_|___________ reserved
		; |_|_______________ Mode type (00=no action, 01= transmit, 10=receive, 11=undefined
		; ***********************************************************************
IDDecodeTable

	movfw	ID_TEMP
	andlw	0x3F		; discard parity bits
	xorlw	Slave0out
	btfsc	STATUS,Z
	retlw	ReceiveData+2	;E; Receive data from bus
 	retlw	ReceiveData+0	;0; Receive data from bus

;	movlw	HIGH IDDecodeTable
;	movwf	PCLATH
;	movfw	ID_TEMP
;	andlw	0x3F		; discard parity bits
;	addwf	PCL, f		; add to PC
;------------------------------------------------------------------------------
; for LIN 1.3, data length = 2
; 		retlw	ReceiveData+0	;0; Receive data from bus
;		retlw	ReceiveData+0	;1; Receive data from bus
;		retlw	TransmitData+0	;2; Transmit data to bus
;		retlw	ReceiveData+0	;3; Receive data from bus
;		retlw	ReceiveData+0	;4; Receive data from bus
;		retlw	ReceiveData+0	;5; Receive data from bus
;		retlw	ReceiveData+0	;6; Receive data from bus
;		retlw	ReceiveData+0	;7; Receive data from bus
;		retlw	ReceiveData+0	;8; Receive data from bus
;		retlw	ReceiveData+0	;9; Receive data from bus
;		retlw	ReceiveData+0	;A; Receive data from bus
;		retlw	ReceiveData+0	;B; Receive data from bus
;		retlw	ReceiveData+0	;C; Receive data from bus
;		retlw	ReceiveData+0	;D; Receive data from bus
;		retlw	ReceiveData+4	;E; Receive data from bus
;		retlw	ReceiveData+0	;F; Receive data from bus
;------------------------------------------------------------------------------
; for LIN 1.3, data length = 2
;		retlw	ReceiveData+2	;10; Receive data from bus
;		retlw	ReceiveData+2	;11; Receive data from bus
;		retlw	TransmitData+2	;12; Transmit data to bus
;		retlw	ReceiveData+2	;13; Receive data from bus
;		retlw	ReceiveData+2	;14; Receive data from bus
;		retlw	ReceiveData+2	;15; Receive data from bus
;		retlw	ReceiveData+2	;16; Receive data from bus
;		retlw	ReceiveData+2	;17; Receive data from bus
;		retlw	ReceiveData+2	;18; Receive data from bus
;		retlw	ReceiveData+2	;19; Receive data from bus
;		retlw	ReceiveData+2	;1A; Receive data from bus
;		retlw	ReceiveData+2	;1B; Receive data from bus
;		retlw	ReceiveData+2	;1C; Receive data from bus
;		retlw	ReceiveData+2	;1D; Receive data from bus
;		retlw	ReceiveData+2	;1E; Receive data from bus
;		retlw	ReceiveData+2	;1F; Receive data from bus
;------------------------------------------------------------------------------
;------------------------------------------------------------------------------
; for LIN 1.3, data length = 4
;		retlw	ReceiveData+4	;20; Receive data from bus
;		retlw	ReceiveData+4	;21; Receive data from bus
;		retlw	TransmitData+4	;22; Transmit data to bus
;		retlw	ReceiveData+4	;23; Receive data from bus
;		retlw	ReceiveData+4	;24; Receive data from bus
;		retlw	ReceiveData+4	;25; Receive data from bus
;		retlw	ReceiveData+4	;26; Receive data from bus
;		retlw	ReceiveData+4	;27; Receive data from bus
;		retlw	ReceiveData+4	;28; Receive data from bus
;		retlw	ReceiveData+4	;29; Receive data from bus
;		retlw	ReceiveData+4	;2A; Receive data from bus
;		retlw	ReceiveData+4	;2B; Receive data from bus
;		retlw	ReceiveData+4	;2C; Receive data from bus
;		retlw	ReceiveData+4	;2D; Receive data from bus
;		retlw	ReceiveData+4	;2E; Receive data from bus
;		retlw	ReceiveData+4	;2F; Receive data from bus
;------------------------------------------------------------------------------
;------------------------------------------------------------------------------
; for LIN 1.3, data length = 8
;		retlw	ReceiveData+8	;30; Receive data from bus
;		retlw	ReceiveData+8	;31; Receive data from bus
;		retlw	TransmitData+8	;32; Transmit data to bus
;		retlw	ReceiveData+8	;33; Receive data from bus
;		retlw	ReceiveData+8	;34; Receive data from bus
;		retlw	ReceiveData+8	;35; Receive data from bus
;		retlw	ReceiveData+8	;36; Receive data from bus
;		retlw	ReceiveData+8	;37; Receive data from bus
;		retlw	ReceiveData+8	;38; Receive data from bus
;		retlw	ReceiveData+8	;39; Receive data from bus
;		retlw	ReceiveData+8	;3A; Receive data from bus
;		retlw	ReceiveData+8	;3B; Receive data from bus
;		retlw	ReceiveData+8	;3C; Receive data from bus
;		retlw	ReceiveData+8	;3D; Receive data from bus
;		retlw	ReceiveData+8	;3E; Receive data from bus
;		retlw	ReceiveData+8	;3F; Receive data from bus
;------------------------------------------------------------------------------
