Well, I'm back again...

Last time I got so tired of it so I quitted that project and started with other stuff instead, PIC16F based, coz there I never get any of those troubles.

*Every* single time I try to use a 18f pic I seriously considering to get another hobby, I really really really HATE mpasm.. it NEVER f**ing work.. I dont want to know how many hour I been using on this crap

I write a program, compile it with like 87665 errors, trying to get the config bits correctly (wich always works on 16f and mp) and after some hour or so I MAYBE can compile it witn just warnings, and then I upload it to the pic, and it does NOT work..

I REALLY try to read both the includes of mpasm AND microchips datasheets, but still, I never get it right.. I try to comment out all config directives in the PBP include (tor the correct pic), or sometimes just the ones I want to change.. but nonono.

..If I at that point change the config bits to "mp-style" and compile it for a 16f (with mp), it ofcourse works directly with no problems... so its NOT my code, its the configbits.

The pic I try to use now is a PIC18F2520 and since my long advanced program (that works perfectly fine on a pin compatible 16F876A) OFCOURSE didn't work, I created a reeeally simple short program that just blinked two LED's..

Code:
@	 __CONFIG    _CONFIG1L, _PLLDIV_5_1L & _CPUDIV_OSC1_PLL2_1L & _USBDIV_2_1L
@  __CONFIG   _CONFIG1H, _FOSC_INTOSCIO_EC_1H
'@  __CONFIG   _CONFIG2H, _MCLRE_OFF_2H
@  __CONFIG    _CONFIG2H, _WDT_OFF_2H & _WDTPS_128_2H
@  __CONFIG    _CONFIG3H, _PBADEN_OFF_3H
@  __CONFIG    _CONFIG4L, _LVP_OFF_4L & _XINST_OFF_4L

DEFINE OSC 20	' Lets work at 20 MHz

blueled		var PORTB.4
redled		var PORTB.5

main:
	low redled
	low blueled
	pause 500
	high redled
	pause 500
	high blueled
	pause 500
	goto main
This compiles with no errors, but warnings (about deprecated __CONFIG for example)

..I have a pulldown on MCLR and the LED's are connected with resistors.. I want to use the internal oscillator, and no WDT.

all __CONFIG statements in the PBP 18F8520.INC are commented out.

Can anyone point me to somwhere this are explained ? or tell me what the problem is ?