Hello, Parallax had invented an alternative instruction set for PICs which was a bit higher level of aggregation than the native one. E. g. your MOVLWF looked as MOV reg,#const which is a look-and-feel of '51 family. They were actually built-in macros for their assembler. Then, Tech-tools had taken the whole stuff, and is also available from their website www.tech-tools.com. I extensively use it as I mean the programs are more compact this way. Just my personal opinion. On the other hand, the compiler is small (< 20 kByte) and extremely fast. Regards, Imre On Wed, 30 Jul 2003, Ed Sutton wrote: > I am a PIC 16F8 newbie. One of the first things I was thinking is start > building an include file containining macros for making helpful "extended > instructions". > > This must have been done a thousand times by PIC experts. Can anyone point > me to or send me any of their favorite macros? Call accross page boundary > macros etc. I have not had much luck Googling for PIC macros. > > For example, I would like a macro to create an "extended instruction" to > replace the following two instructions: > > ;M=a > MOVLW a > MOVWF M > > ;***************************************** > ;* Macro to assign a literal to a memory location via W > ;* > ;* Note: Modifies W register > '* > ;***************************************** > MOVLWF macro l, m > MOVLW l > MOVWF M > endm > > > Thanks in advance, > > -Ed > > -- > http://www.piclist.com hint: To leave the PICList > mailto:piclist-unsubscribe-request@mitvma.mit.edu > -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads