Message-ID: <3618B080.ED38C4C@cdworld.co.uk> From: Craig Rothwell Reply-To: craig AT cdworld DOT co DOT uk Organization: www.CDworld.co.uk X-Mailer: Mozilla 4.04 [en] (Win95; I) MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: converting 2 numbers into one Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 22 Date: Mon, 05 Oct 1998 12:41:52 +0100 NNTP-Posting-Host: 195.102.195.15 X-Complaints-To: news AT u-net DOT net X-Trace: newsr2.u-net.net 907587456 195.102.195.15 (Mon, 05 Oct 1998 12:37:36 BST) NNTP-Posting-Date: Mon, 05 Oct 1998 12:37:36 BST To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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.