Dear mackrackit is the correct code to do
Thank you
'DEFINE OSC 4
'@__config _XT_OSC & _WDT_ON & _CP_OFF
'symbol trisb = 134
'symbol trisa = 133
'symbol portb = 6
'symbol porta = 5
'low 1
'input 0
'input 2
'start:
'pot 0,50,B0
'pot 2,50,B1
'B0 = B0 * 5
'B1 = B1 * 5
'y:
'if B0 < 100 then yf
'if B0 > 150 then yb
'x:
'if B1 < 100 then xr
'if B1 > 150 then xl
'serout 1,n9600,(5)
'goto start
'yf:
'serout 1,n9600,(2)
'goto start
'yb:
'serout 1,n9600,(1)
'goto start
'xl:
'serout 1,n9600,(3)
'goto start
'xr:
'serout 1,n9600,(4)
'goto start
'end




Bookmarks