-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 source= http://www.piclist.com/piclist/2003/09/10/124545a.txt? I have posted a solution to both the FIFO and the Stack in a high level language on my piclist page. It should be completely transparent how to write assembly from this. http://www.piclist.com/techref/member/AM-vima-Y84/index.htm Real Soon Now (RSN) I will hand compile this. It is 1 of 2 items that I need to produce next on my project, and it only needs to have 3-4 hours of "quality" time. Though I will release the .asm file, I think I can make it have sufficient quality that only the .o and .inc files are needed. Is the PICLIST community mostly sharing .asm files, or is anyone doing .o+.inc releases? The .o+.inc gives better quality, IMHO, but some extra discipline is required. Thoughts? One of my consistent error patterns is to screw up the "Fencepost count" so those of you who are adept at spotting that particular error may do us all a favor and go hunting for them. Some questions that I have are: 0. Is there a better place in the PICLIST resources to publish this source? 1. Does the community want variable size FIFOs instead of 1 fixed size? (that is, perhaps an 8 and a 16 in the same program). More generality uses more RAM, more Cycles, less ROM overall in a project. 2. I am tinkering with "Handlers" in this code. C programmers would probably call this a "pointer to a procedure." There is lively discussion in other arenas as to whether this then becomes a complete and true "Object oriented" solution. I am currently grumpy with the aesthetics of managing PCLATH in my code, but I do have a working prototype in my bit-bang UART. Is anyone doing "Object oriented" assembly on the PIC? 3. I would *really* like to see a few different styles of hand compiling this into a relocatable paradigm, with the .o+.inc releases (or even better, with only 1 .inc file that everyone uses.) - --- Aubrey McIntosh http://www.piclist.com/member/AM-vima-Y84 PIC/PICList FAQ: http://www.piclist.com -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 7.0.3 for non-commercial use iQA/AwUBP196zgKlSw8yssF7EQLKdACeN6qGP0yoKeYx79iFmOEL4juEPv0AoMYn E4NHST9KSZ1YpeH4oaHZ8NNA =vZaH -----END PGP SIGNATURE----- -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics