Quantcast
Channel: MEL PICBASIC Forum
Viewing all articles
Browse latest Browse all 4787

How to add two binary variables next to each other, without mathematical operations?

$
0
0
The question is.

Say I have variable A, which is 1110 in BIN. And have variable B, which is 1101 in BIN. I want to convert them to single variable, which will read as 11101101 in BIN, by just adding them next to each other. If I use "+", then binary values of these variables will be added, so mathematicaly, result will be correct, but this is not what I need.

Viewing all articles
Browse latest Browse all 4787

Trending Articles