> > movlw ISA_HBASEIO > movwf ISA_HADR #define ISA_HBASEIO #define ISA_LBASEIO unsigned char ISA_HADR; unsigned char ISA_LADR; unsigned char ISA_OFFSET; ISA_HADR = ISA_HBASEIO; > movf ISA_OFFSET, W > addlw ISA_LBASEIO > movwf ISA_LADR ISA_LADR = ISA_LBASIO + ISA_OFFSET; > ; parse address > > movf ISA_LADR, W > andlw 0x3F > movwf PORTC PORTC = ISA_LADR & 0x3F; > rrf ISA_LADR, F > rrf ISA_LADR, W > andlw 0x30 > movwf ISA_LADR ISA_LADR = (ISA_LADR >> 2) & 0x30; > swapf ISA_HADR, F > rlf ISA_HADR, F > rlf ISA_HADR, W > andlw 0xC0 > movwf ISA_HADR ISA_HADR = (ISA_HADR << 6) & 0xC0; > movlw 0x0F > addwf ISA_LADR, W > addwf ISA_HADR, W > movwf PORTB PORTB = ISA_LADR + ISA_HADR + 0x0F; -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu