
SP37
Tire Pressure Monitoring Sensor
ROM Library Functions
ROM Library Function Guide
87
Revision 1.0, 2011-12-15
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
2.21.5
Outputs
2.21.6
Resource Usage
Table 93
SMulIntInt: Input Parameters
Register / Address
Type
Name
Description
R7
signed int
idata*
Multiplicand1
Pointer to Multiplicand1
R5
signed int
idata*
Multiplicand2
Pointer to Multiplicand2
R3
signed long
idata*
Product
Pointer to an long array in RAM to the 32 Bit
multiplication Product
(Multiplicand1 * Multiplicand2)
Table 94
SMulIntInt: Output values
Register/ Address
Type
Name
Description
None
---
---
---
Table 95
SMulIntInt: Resources
Type
Used or Modified
Registers
R0, R1, R2, R3, R4, R5, R6, R7
SFR
ACC, B, PSW
Stack
2 Bytes
1)
1) Two additional bytes, not included here, are needed to call the library function