multh.inc


Author: Jonathan Weaver, jonw0224@aim.com
Date: 2/3/2010
Version: 1.0
Filename: multh.inc
Description: Two multiply by literal routines


Procedure Heading List


MULTL_B_B macro literal, reg, prod
MULTL_B_I macro literal, reg, prodH, prodL


Procedure Descriptions


MULTL_B_B macro literal, reg, prod
Description:
Multiply reg by a literal and store a byte result in prod. Generates fairly optimized code (11.9 program words/execution cycles on average). Affects STATUS and WREG.
Parameters:
literal constant to multiply reg by
reg register to multiply by literal
prod register to retain single byte product


MULTL_B_I macro literal, reg, prodH, prodL
Description:
Multiply reg by a literal and store a two byte result in prodH, prodL. Generates fairly optimized code (24.5 instruction words/execution cycles on average). Affects STATUS and WREG.
Parameters:
literal constant to multiply reg by
reg register to multiply by literal
prodH register to retain high byte of the product
prodL register to retain low byte of the product