please dont rip this site

pGC-hotmail-5A4

Name:Mr. Patrick Garcia Carreon
Web Site:

David A Cary Says:


"error 118 with the message - overwriting previous contents at 004."

This usually doesn't happen when I use the "relocatable code" programming style (using the "code" directive).

This happens all the time when I use the "absolute code" programming style.
By default, the MPLAB assembler takes your code and starts assembling it starting at location 000.
Later, when my source file tells MPLAB to assemble an interrupt routine (which must start at address 004), those locations have already been used up by other instructions.

The source code file needs to make address 000 contain a "goto start" instruction.
Then the source code file should start the interrupt routine at address 004. Then the main program (beginning with "start:") is placed *after* the interrupt routine in the source code file.

Placing the interrupt routine after the main program in the source code file never works for me.

I hope that helps.
--
David Cary

+
file: /techref/member/pGC-hotmail-5A4/index.htm, 1KB, , updated: 2006/2/16 22:15, local time: 2008/11/21 10:40, owner: pGC-hotmail-5A4,
TOP NEW HELP FIND: 
38.103.63.58:LOG IN
©2008 PLEASE DON'T RIP! DO: LINK / DIGG! / MAKE!

 ©2008 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it!
<A HREF="http://www.piclist.com/techref/member/pGC-hotmail-5A4/index.htm"> Member Homepage for pGC-hotmail-5A4</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be reviewed) Just type in the box and press the Post button. (HTML welcomed!): A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Did you find what you needed?

  PICList 2008 contributors:
o List host: MIT, Site host massmind.org, Top posters @20081121 Apptech, Jinx, Xiaofan Chen, olin piclist, Vitaliy, William \Chops\ Westfield, Tamas Rudnai, Alan B. Pearce, JonnyMac, Gerhard Fiedler,
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Shultz Electronics, Timothy Weber, on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
  'What can I do?' - SiCKO

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .