Multiplication

For C and ASSEMBLY users to post questions and code snippets for programming in C and ASSEMBLY. And for any other C or ASM course related questions.

Moderators: Benj, Mods

Post Reply
User avatar
Jan Lichtenbelt
Posts: 797
Joined: Tue Feb 17, 2009 8:35 pm
Location: Haren GN, the Netherlands
Has thanked: 128 times
Been thanked: 264 times
Contact:

Multiplication

Post 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

Spanish_dude
Posts: 594
Joined: Thu Sep 17, 2009 7:52 am
Location: Belgium
Has thanked: 63 times
Been thanked: 102 times
Contact:

Re: Multiplication

Post 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

Post Reply