well it compiles ,after making the change to lookup2 , and portoffset to a word variable

but ill have to wait for the pcbs to arrive to test it

cheers hendrick