convert MikroC ASM to MPLAB ASM

General discussion on mikroC PRO for PIC.
Post Reply
Author
Message
elektromm
Posts: 8
Joined: 05 Jun 2023 18:51

convert MikroC ASM to MPLAB ASM

#1 Post by elektromm » 25 Sep 2023 20:08

hi,
i created a simple program based on a pic12f675 using MikcoC
this program is Hardware compatible with pic12f508 (i have some in stock)
but MikroC doesn't support the pic12F508 because it's à 12bit microcontroller. it's impossible to compile the programm for the 12f508
MPLAB support the 12f508

i discovered that the MikroC asm is a "virtual" assembler. not compatible with the MPLAB asm

is there a way to translate or convert a MikroC programm to edit it and compile it on MPLAB?

thanks a lot

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: convert MikroC ASM to MPLAB ASM

#2 Post by filip » 11 Oct 2023 14:49

Hi,

The C code written in mikroC is translated to assembly, you can see the code in the .asm and .lst file.

You can try and copy the code to MPLAB ASM, but I'm unsure if you will be able to compile it straight away.

Regards,
Filip.

elektromm
Posts: 8
Joined: 05 Jun 2023 18:51

Re: convert MikroC ASM to MPLAB ASM

#3 Post by elektromm » 14 Oct 2023 01:06

simply: NOT POSSIBLE.

The generated file from MikroC may look similar to ASM (Assembly Language) code.
However, it is important to note that it is not true ASM code but rather a representation or abstraction of the code that is easier for the compiler to work with.
The generated "*.asm" code is specific to the MikroC compiler and may not be directly compatible with other ASM compilers like MPLAB ASM.

i have a simple prog for a 12f675 i want to use a 12f508 (MikroC dosn't support the 12f508 because it is a 12bits microController (le 12f675 is a 14bits).
notice: the hardware is 100% compatible betwin 675 and 508

thanks.

Post Reply

Return to “mikroC PRO for PIC General”