RF-AMY-K22a

Name: Roger Froud
Company: Amytech Ltd.
Web Site:

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

etc, etc...

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.