If I compile this program, the test1 subroutine will be missing from the asm file. This causes the assembler to fail. If I comment out the Interrupt subroutine, then the test1 subroutine will be in the asm file as it should be. This seems to indicate a problem with the way the compiler adds the interrupt subroutine to the asm file. Here is the program:
'A program to test
'Chip model
#chip 16F628a, 20
'Main routine
Start:
test1
'Jump back to the start of the program
goto Start
sub test1
PORTA = 200
end sub
sub Interrupt
PORTA = 300
end sub
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
What version of GCBASIC are you using to compile it?
When I try to compile that program, it just shows an error about trying to put 300 into the byte variable PORTA (as it should) and the test1 routine is present in the generated .asm file.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If I compile this program, the test1 subroutine will be missing from the asm file. This causes the assembler to fail. If I comment out the Interrupt subroutine, then the test1 subroutine will be in the asm file as it should be. This seems to indicate a problem with the way the compiler adds the interrupt subroutine to the asm file. Here is the program:
'A program to test
'Chip model
#chip 16F628a, 20
'Main routine
Start:
test1
'Jump back to the start of the program
goto Start
sub test1
PORTA = 200
end sub
sub Interrupt
PORTA = 300
end sub
What version of GCBASIC are you using to compile it?
When I try to compile that program, it just shows an error about trying to put 300 into the byte variable PORTA (as it should) and the test1 routine is present in the generated .asm file.