Page 1 of 1

Multiplication

Posted: Sun Dec 29, 2013 8:19 pm
by Jan Lichtenbelt
What is the difference between (in Flowcode 6 map file):

__mul_8_8__00009 __mul_8_8__8(unsigned char,unsigned char)

and

__mul_8u_8_0000A __mul_8u_8u(unsigned char,unsigned char)


Kind reagrds

Jan Lichtenbelt

Re: Multiplication

Posted: Mon Dec 30, 2013 11:09 pm
by Spanish_dude
From : https://github.com/DeuceEFI/Reflow-Toas ... s/boostc.h

Code: Select all

extern unsigned char    __mul_8_8__8( unsigned char a, unsigned char b );
extern unsigned short   __mul_8u_8u( unsigned char a, unsigned char b );
The first one returns a byte (max 255), the second one returns a word (2 bytes, max 65535).
ASM code behind the function is different too I presume.

- Nicolas