linux-mips
[Top] [All Lists]

Re: binary concatenation

To: hernan lopez pardo <hernanlopezpardo@gmail.com>
Subject: Re: binary concatenation
From: Dmitri Vorobiev <dmitri.vorobiev@gmail.com>
Date: Mon, 25 Jan 2010 13:11:40 +0200
Cc: linux-mips@linux-mips.org
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=9/SLI+LIfTeFxA7xhvhJYowOG4m7+q3iRAgYvFfNyTs=; b=NjQwHhrTKoP0rnLx2QdrgvskwtOxY6nYfdCgo81t0W2PbuwJOJvlg0H3g6kyYlGARd JlFWLTGnPYlix6eHsn1T4Lp55hQ3Fg6WQg2Qlv59zujqbISs+YjM4xYmjk5gKPqryfcv REc9FDLxb653zVRvr7VZXxzpSxPAVNYXccZI4=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=rYMrxd26KI3ONoc8sKqI7YEcuIYQ3X6e841XTLuoKV6VAThI05ch92+8+e0RsYWW3C 39ITeAZHU9ry2vrNjPGm9rMqINweiVE9uVsa11OgurAIRM5e2GGRMKgHSkKlUfW1cFs2 4xSPNI5O7FuaUpY1Oaw9dWgh6JELJU9bzOptc=
In-reply-to: <6675c11001242150v44795f7axd4c9c09a5ed8a8ab@mail.gmail.com>
References: <6675c11001242150v44795f7axd4c9c09a5ed8a8ab@mail.gmail.com>
Sender: linux-mips-bounce@linux-mips.org
On Mon, Jan 25, 2010 at 7:50 AM, hernan lopez pardo
<hernanlopezpardo@gmail.com> wrote:
> Hello, simple question
>
> $t1 = 101
> $t2 = 11
>
> How I do for concatenate $t1, $t2 for obtain $t3 = 10111 ?.

In pseudo-code:

shl t1, t1, 2
or t3, t1, t2

Hope that helps.

Dmitri

<Prev in Thread] Current Thread [Next in Thread>