In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Jon Williams wrote: 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. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=89343#m89360 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)