On Thursday 22 April 2004 17:49, Andrew Warren wrote: > Matt Marsh wrote: > > Also, some of the techniques that this book teaches are a > > little dubious in places. For example, when saving the state of > > the STATUS register on an interrupt, it just uses movf > > instructions instead of swapf. > > That's perfectly ok. If the interrupt-service routine ends > in the usual way (by restoring STATUS and then restoring W), then > SWAPF is only required when restoring W. ah, sorry, I should have said that the book is storing/restoring both STATUS and W... and uses no SWAPF instructions... Matt -- Matt N. Marsh Email: matt@mattmarsh.net Yahoo: marshmn Web: http://www.mattmarsh.net/ Jabber: mattmarsh@jabber.org MSN: matt@mattmarsh.net ICQ: 250467363 AIM: MattMarshUK -- 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