Hi,

a fried is using a piece of code I wrote and is getting a bunch of these
warnings which I'm not seeing:

main.asm:19:Warning[212] __CONFIG has been deprecated for PIC18 devices.
Use directive CONFIG.


He is on Windows with SDCC 3.x.y and I'm on Mac stuc with 2.8.9 atm.

Googling around it looks to me like this warning is from MPASM and not
gpasm?

Is hes toolchain messed up or does it work like that on Windows..should it
work..what is going on?

But more importantly  what is the right way to handle this?

Web search suggests that instead of:

code char at 0x300000 CONFIG1L = 0x20;


we could use something like:

CONFIG USBDIV=ON, CPUDIV=OFF, PLLDIV=0


is that right? Is that syntax supported by SDCC / gputils?

Did not find anything about this in the SDCC / gputils manuals...

If this is the Right Way (tm) then where are those bits define or can
one just use the names of those bits in the processor datasheet?

I could of course install SDCC latest (and I will, very soon now) and
even try it on Windows and experiment but don't want to have anything
more on my plate right now as atm this is not my problem so I'm
hoping someone on the list can throw some light on this?

br Kusti



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to