In SX Microcontrollers, SX/B Compiler and SX-Key Tool, dkemppai wrote: [quote="Jon Williams (Parallax)"] Not at the moment -- but we are trying to figure out a way to add it cleanly (SX/B is supposed to be a learning tool). I ran into this myself with a small project that we wanted to do in SX/B, but I got lucky. I only ever had to multiply by 32 so it was a simple matter of shifting left five times. Here's my code: [color=blue>']' -- multiples 'theChar' by 32[/color] [color=blue>MAKE_ADDR: ] eeHi = 0 IF __PARAM1 > 0 THEN ASM MOV eeLo, __PARAM1 ' copy character value MOV __PARAM1, #5 ' prep to shift 5 times CLC RL eeLo ' shift the low byte RL eeHi ' shift high (use C) DJNZ __PARAM1, $-2 ENDASM ENDIF RETURN[/color] The point of showing this is that if you can find an assembly routine for what you want to do then you can add it as I have done. [/quote] JW, See, multi-byte math... ...it's the way of the future! (grin) :-) I thinking of some projectes last night that could use it... JG, [url=http://www.sxlist.com/techref/ubicom/lib/math/mul.htm]http://www.sxlist.com/techref/ubicom/lib/math/mul.htm[/url] These are ASM routines, but you should be able to implement them in SX/B... -Dan ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=89343#m89363 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)