A method for identifying an instruction within a plurality of contiguous bytes, said instruction having a first boundary and a second boundary, said first boundary comprising a first one of said plurality of contiguous bytes and said second boundary comprising a second one of said plurality of contiguous bytes, said method comprising:
- identifying said first boundary of said instruction using a first set of boundary-identifying indications, wherein said first set of boundary-identifying indications includes a first plurality of indications, and wherein each of said first plurality of indications corresponds to one of said plurality of contiguous bytes and indicates if said one of said plurality of contiguous bytes forms said first boundary;
- creating a first mask identifying a first potential instruction having said first boundary and a third boundary;
- creating a second mask identifying a second potential instruction having said first boundary and a fourth boundary different from said third boundary;
- selecting said first mask as a selected mask if a second set of boundary-identifying indications indicates that said third boundary is said second boundary of said instruction, wherein said second set of boundary-identifying indications includes a second plurality of indications, and wherein each of said second plurality of indications corresponds to one of said plurality of contiguous bytes and indicates if said one of said plurality of contiguous bytes forms said second boundary;
- and
- selecting said second mask as said selected mask if said second set of boundary-identifying indications indicates that said fourth boundary is said second boundary of said instruction;
- whereby said selected mask identifies bytes within said plurality of contiguous bytes which form said instruction.