Date: Mon, 5 Oct 1998 15:42:52 +0200 (MET DST) From: Olivier Perron X-Sender: perron AT rtbsci146s To: Craig Rothwell Cc: djgpp AT delorie DOT com Subject: Re: converting 2 numbers into one In-Reply-To: <3618B080.ED38C4C@cdworld.co.uk> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On Mon, 5 Oct 1998, Craig Rothwell wrote: > how can I join 2 sets of binary > to make one? > > eg: > > turn '11111111' and '00000000' > (as 2 variables) > > into '1111111100000000'? (as one > variable) > > A bit like using the Z80's HL > register, where you could treat > each variable seprate but also > as one big number. And please > don't bother to email answers > like 'Work it out yourself' I've > tried. I would not be asking if > I could do it. > It's not clear to me if you want to do it in assembler or in C ?