> -----Original Message----- > From: Kashif Ali [mailto:mtl3@WOL.NET.PK] > Subject: Re: [PIC]: facing problem in 16f874 > > Please give me a little example for use of bank1, 2 and 3 in One Call > routine. > This is what i have done in my application. Quick and dirty, but works :-) It's in 'C', but you can simply transcode into assembler. Enjoy, Frank //========================================================================== // quick and dirty code // pAddr is used as a generic RAM pointer, not a const pointer // but we must test for bank 0/1 against bank 2/3 // // returns TRUE if was set signal //========================================================================== bit GetEvent_NACK_P(const unsigned int * const pAddr) { if (WhatElseFlag) return FALSE; else { if ( ((unsigned int)pAddr & 0x0100) == 0 ) *(bank1 unsigned int * const)pAddr = ReturnValue; else *(bank3 unsigned int * const)pAddr = ReturnValue; return TRUE; } } -------------------------------------- GSP Sprachtechnologie GmbH Frank Wollenberg HW-Entwicklung Tel.: +49 (0)30 769929-78 Fax: +49 (0)30 769929-12 eMail: f.wollenberg@gsp-berlin.de -- GSP Sprachtechnologie GmbH Teltowkanalstr.1, D-12247 Berlin Tel.: +49 (0)30 769929-0 Fax: +49 (0)30 769929-12 eMail: Info@gsp-berlin.de Web: http://www.gsp-berlin.de -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu