I have a large header file of macros that use pseudo
16 bit registers to perform a large variety of useful 16bit maths
functions. This simulates 16 bit opcodes that refer to source &
destination such as....
MOVLAA d'1234' ;Move 16 bit literal to pseudo register A
ADDFA FILE16 ;Add the file register pair defined by FILE16 RES 2 to 16 bit pseudo register A
Dozens of definitions including pseudo registers B,C & D
Some 32 bit macro definitions that group 2 pseudo registers as a 32 bit pair
This is all based on ideas foud in Microchips 'Embedded Control Handbook' Volume 1. It's a wonder to me that Microchip don't have a proper official set of macros like these as they are so useful and much less clumsy than most other methods.
|file: /Techref/member/RF-AMY-K22a/index.htm, 1KB, , updated: 2006/4/18 09:09, local time: 2013/5/24 05:57,
|©2013 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?|
<A HREF="http://www.piclist.com/techref/member/RF-AMY-K22a/index.htm"> Member Homepage for RF-AMY-K22a</A>
|Did you find what you needed?|
PICList 2013 contributors:
o List host: MIT, Site host massmind.org, Top posters @20130524 RussellMc, IVP, Bob Blick, alan.b.pearce, John Gardner, veegee, Sean Breheny, Isaac Marino Bavaresco, Carl Denk, Josh Koffman,
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: None at this time. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
Welcome to www.piclist.com!