PCM programmer
 
 
  Joined: 06 Sep 2003 Posts: 21708
  
			
			 
			 
			
			
			
			
			
			
			
  
		  | 
		
			
				 | 
			 
			
				 Posted: Mon Jul 17, 2006 12:08 pm     | 
				     | 
			 
			
				
  | 
			 
			
				It works with PCM vs. 3.249.   Here is the ASM code from the .LST
 
file for the program shown below.
 
 	  | Code: | 	 		  
 
0000            00302 ....... a = __LINE__;  
 
000C 1283       00303 BCF    03.5   // Bank 0
 
000D 01A2       00304 CLRF   22    // MSB = 0
 
000E 300A       00305 MOVLW  0A
 
000F 00A1       00306 MOVWF  21   // LSB = 0x0A  (line 10)
 
 | 	  
 
 	  | Code: | 	 		  
 
#include <16F877.h> 
 
#fuses XT, NOWDT, NOPROTECT, BROWNOUT, PUT, NOLVP 
 
#use delay(clock=4000000) 
 
 
//=================================
 
main() 
 
{ 
 
Long a; 
 
 
a = __LINE__; 
 
 
while(1); 
 
}  | 	 
  | 
			 
		  |