$regfile = "m8def.dat" $crystal = 8000000 $lib "lcd4.lbx" $lib "mcsbyte.lbx" Config Rc5 = Pinc.0 Enable Interrupts Config Lcdpin = Pin , Rs = Portb.0 , E = Portb.2 , Db4 = Portb.4 , Db5 = Portb.5 , Db6 = Portb.6 , Db7 = Portb.7 Config Lcd = 16 * 2 Dim Address As Byte Dim Command As Byte Cursor Off '******************************************************************************* Cls Do Getrc5(address , Command) If Address = 0 Then Command = Command And &B01111111 Locate 1 , 1 Lcd "Address: " ; Address Locate 2 , 1 Lcd "Cmmand: " ; Command End If Loop End