--=---=-==-====-===-===-=-==-=--=---=--==-=--=-=-= Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed I wrote a small program to transmit characters from my new PIC PCB to the workstation. I then thought I would use some subroutines and send meaningful messages. I don't have the values I expect in the W register after a subroutine call. The code is on the web, and a good assemble and a few bad assembles can be made by changing the command line switches. The simple "send 1 character" at high speeds part does work, at least to 38,400. LEDs off of port D are used for diagnostic purposes. No input is supported: this is transmit only. http://www.jump.net/~vima/PIC/f874_txb.asm Should the contents of W survive a subroutine return? Should they survive a call to a subroutine that only executes "return" -- Aubrey McIntosh, Ph.D. -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads --=---=-==-====-===-===-=-==-=--=---=--==-=--=-=-= Content-Type: application/pgp-signature -----BEGIN PGP MESSAGE----- Version: PGPfreeware 7.0.3 for non-commercial use iQA/AwUBPzbETAKlSw8yssF7EQKzhgCg7jncBEivOK3c/yj5xIh6dhL55RoAoLuo sKhECXRZYhzITtbm5CyEggWu =3zjd -----END PGP MESSAGE----- --=---=-==-====-===-===-=-==-=--=---=--==-=--=-=-=--