PIC->PIC
1. For PIC16C54, U51 can be decompiled correctly.
2. For PIC16C57, since PIC16C57 has 2K ROM divided into 4 PAGES, it may not be able to decompile correctly when there are cross-page jumps or cross-page calls. Therefore, great care must be taken when making changes to the program. These instructions need to be adjusted before making changes.
PIC->EMC
Note: The program after the above conversion may still have the following problems and need to be corrected:
1. As the internal RAM address of EMC is 10H higher than that of PIC, the conversion program hard adds 10H to the RAM address >=10H. In indirect addressing, when the value assigned to the immediate value of R4 is transferred to EMC, the immediate value should also be added with 10H. .
2. PIC and EMC individual registers such as flag registers R3.7 and R4 are different. Some PIC programs use the idle bits as flag bits. Check whether there is any conflict in the EMC program.
3. When PIC and EMC read RA or port 5, the idle bit assignments are different: for example, when PIC16C54 reads RA., the high four bits of RA are 0, but EM78×56 is not 0, so EM78X56 needs to shield it when reading port 5 data. High position, otherwise it is easy to make mistakes.
it works
it works
it works