2.21
SMulIntInt() (16Bit * 16Bit)
2.21.1
Description
This function multiplies the first signed int value (16 bit) Multiplicand1 by the second signed int value (16bit)
Multiplicand2 and produces a 32-bit signed result.
2.21.2
Actions
•
Perform multiplication
2.21.3
Prototype
void SMulIntInt(signed int idata * Multiplicand1, signed int idata * Multiplicand2, signed long idata * Product)
2.21.4
Inputs
Table 93
SMulIntInt: Input Parameters
Register / Address
R7
R5
R3
2.21.5
Outputs
Table 94
SMulIntInt: Output values
Register/ Address
None
2.21.6
Resource Usage
Table 95
SMulIntInt: Resources
Type
Registers
SFR
Stack
1) Two additional bytes, not included here, are needed to call the library function
ROM Library Function Guide
Type
Name
signed int
Multiplicand1
idata*
signed int
Multiplicand2
idata*
signed long
Product
idata*
Type
Name
---
---
Used or Modified
R0, R1, R2, R3, R4, R5, R6, R7
ACC, B, PSW
1)
2 Bytes
Tire Pressure Monitoring Sensor
Description
Pointer to Multiplicand1
Pointer to Multiplicand2
Pointer to an long array in RAM to the 32 Bit
multiplication Product
(Multiplicand1 * Multiplicand2)
Description
---
87
SP37
ROM Library Functions
Revision 1.0, 2011-12-15