In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: John, Here is a routine to get a 16 bit result from multiplying two bytes: DEVICE SX28,OSCXT1,OPTIONX,STACKX,TURBO FREQ 4_000_000 A VAR BYTE B VAR BYTE LSB VAR BYTE MSB VAR BYTE PROGRAM Start NOSTARTUP Start: A = 255 B = 31 ASM ' LSB,MSB = A * B MOV __PARAM1,A CLR MSB MOV LSB,#128 RR __PARAM1 MOV W,B SNC ADD MSB,W RR MSB RR LSB JNC @$-6 ENDASM WATCH LSB,16,UDEC END Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=89343#m89364 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)