This is the code we have now and it still isn't working, the only thing it is doing is stopping the program where it is, What is wrong?Code:Trisa = 32 Trisc = 0 a Var porta:c var portc x var word:t1 var word dummy var byte x=0 t1=200 ANSEL = 0 ioca=%00100000 CMCON0 = 7 start: on interrupt goto buttonpressed INTCON = %10001000 one: gosub left goto one buttonpressed: gosub All_on dummy=porta ; clear mismatch condition INTCON.0 = 0 ; reset interrupt flag resume '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 'SUBROUTINES left: a=4:c=36 pause t1 a=0: c=0 pause t1 return all_on: a=7:c=63 pause t1 return




Bookmarks