Pigmeo was a compiler and framework for writing microcontroller firmware in C# and other .NET languages, developed by Adrián Bulnes (Urriellu) between 2007 and 2010. This is a frozen, read-only archive of the project’s website, pigmeo.org; nothing here is maintained. Source code: github.com/Urriellu/pigmeo · Original capture: Wayback Machine · urriellu.net

CCS PCM Output 001 - Global variable assignments

From Pigmeo Development Wiki

C language

#include <16F716.h>
 
#byte	PORTB=0x06
 
void main() {
	PORTB=7;
}

Assembly language

0000:  MOVLW  00
0001:  MOVWF  0A
0002:  GOTO   004
0003:  NOP
.................... #include <16F716.h> 
.................... //////// Standard Header file for the PIC16F716 device //////////////// 
.................... #device PIC16F716 
.................... #list 
....................  
....................  
.................... #byte	PORTB=0x06 
....................  
.................... void main() { 
0004:  CLRF   04 ;Clear FSR
0005:  MOVLW  1F ;0b00011111
0006:  ANDWF  03,F ;STATUS
0007:  BSF    03.5 ;switch to bank 1
0008:  BSF    1F.0 ;ADCON1.PCFG0
0009:  BSF    1F.1 ;ADCON1.PCFG1
000A:  BSF    1F.2 ;ADCON1.PCFG2
.................... 	PORTB=7; 
000B:  MOVLW  07
000C:  BCF    03.5 ;switch to bank 0
000D:  MOVWF  06
.................... } 
000E:  SLEEP