M Wedin wrote: > I have come across the strangest problem. When I compile a standalone > run.asm:91:Error [152] Executable code and data must be defined in an > appropriate section. > > And lots of them. The simplest bsf instruction will cause one to occur. > > I would be very happy if someone could shed some light on this. I am using > PiKdev under Debian Etch, stable. > Best regards, Wed Pikdev wants you to use relocatable mode for everything, whereas your source is probably using absolute mode. Check for "ORG" directives (relocatable mode uses "CODE" instead). Pikdev is a project-based system and allows for multiple source files, so it forces you to use relocatable mode (at least by default). Relocatable is better anyway, as it's much more flexible. There has been a lot written on the subject. See this link for example: http://forum.microchip.com/tm.aspx?m=46653&mpage=1 By the way, I use Piklab. It's a fork of Pikdev, and in my opinion it's much better :) (at least back when I switched) -- Hector Martin (hector@marcansoft.com) Public Key: http://www.marcansoft.com/marcan.asc -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist