i got the following errors when i wrote-:
asm
{
bsf 03h,5 ;Go to Bank 1
movlw 00h ;Put 00000 into W
movwf 85h ;Move 00000 onto TRISA – all pins set to output
bcf 03h,5 ;Come back to Bank 0
}
error: error in built-in assembly
i m using FlowcodeV3 for PIC
ASM IN FLOWCODE
- Steve
- Matrix Staff
- Posts: 3433
- Joined: Tue Jan 03, 2006 3:59 pm
- Has thanked: 114 times
- Been thanked: 422 times
Re: ASM IN FLOWCODE
Hello,
It looks like the compiler must use actual register names, rather than their addresses in RAM. The following code should work fine:
It looks like the compiler must use actual register names, rather than their addresses in RAM. The following code should work fine:
Code: Select all
asm
{
bsf _status,5 ;Go to bank 1
movlw 00h ;Put 00000 into W
movwf _trisa ;Move 00000 onto TRISA - all pins set to output
bcf _status,5 ;Come back to Bank 0
}