Assembler
-
- Posts: 13
- http://meble-kuchenne.info.pl
- Joined: Sun Aug 08, 2021 11:20 pm
Assembler
Are there any plans to include an "Assembler" Command Icon for writing Assembly code for Microchip MCUs?
-
- Matrix Staff
- Posts: 1465
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 204 times
- Been thanked: 347 times
Re: Assembler
You can add assembly language within a C icon using "#asm" or "asm()" like this:
Code: Select all
#asm
BCF 0,3
BANKSEL(_var)
RLF (_var)&07fh
RLF (_var+1)&07fh
#endasm
// or alternatively:
asm("BCF 0,3");
asm("BANKSEL _var");
asm("RLF (_var)&07fh");
asm("RLF (_var+1)&07fh");
-
- Valued Contributor
- Posts: 997
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 190 times
- Been thanked: 217 times
Re: Assembler
Hi keithh534
Assembly code for Microchip MCU is not for all PIC the same. PIC32 has a different assembler code.
What I can recommend to you is to use Flowcode's C code for the PIC32 to set and get some register.
regards
Stefan
Assembly code for Microchip MCU is not for all PIC the same. PIC32 has a different assembler code.
What I can recommend to you is to use Flowcode's C code for the PIC32 to set and get some register.
regards
Stefan