I'm considering using the HiTech C Compiler Lite to perform logical operations and math within my code. It just doesn't seem to make sense to me to write 8 or 9 lines of code in assembly for something that can be coded in C with 1 line.
I envision it going something like this:
Opening a file and beginning with:
Does anyone anticipate a problem with this - considering I will be writing almost exclusively in assembly in a C compiler.
Can I do all of the configuration and equating within the " #asm - #endasm " tags and still expect it to properly compile, program into the PIC, and operate?
Will the variables work if I've equated a say, USERFILE1, in the assembly tags and then I reference it as an operand in the C code?
Thanks for the input.
I envision it going something like this:
Opening a file and beginning with:
Rich (BB code):
#asm
SOME
ASSEMBLY
CODE
HERE
#endasm
A = B / C
#asm
MOVF A,PORTB
MORE
ASSEMBLY
HERE
END
#endasm
Can I do all of the configuration and equating within the " #asm - #endasm " tags and still expect it to properly compile, program into the PIC, and operate?
Will the variables work if I've equated a say, USERFILE1, in the assembly tags and then I reference it as an operand in the C code?
Thanks for the input.