Method and apparatus for finding a termination character...

G - Physics – 06 – F

Patent

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

G06F 7/00 (2006.01) G06F 7/74 (2006.01) G06F 9/30 (2006.01) G06F 17/30 (2006.01)

Patent

CA 2162115

The invention is an instruction for locating the address of a specific character or value within a byte string of variable length. An offset into a portion of the string is specified and the portion of the string is searched for a first occurrence of the specific character beginning at the specified offset. If the specific character is found, then the existence of the specific character is indicated and an address or offset of the specific character is saved or otherwise indicated. If the specific character is not found, then the non-existence of the specific character is indicated and a convenient address or offset for referencing the next character immediately following the portion of the string already examined is saved or otherwise indicated. The specific character can have a length of one or more bytes and can be a predefined fixed value or a dynamic arbitrary value. The invention can execute in a time period comparable to performing an arithmetic instruction. Moreover, the invention can be combined with other load and store instructions, so that a copy operation can be performed by invoking this instruction sequence one or more times.

L'invention se rapporte à une instruction permettant de localiser l'adresse d'un caractère ou valeur spécifique à l'intérieur d'une chaîne d'octets de longueur variable. Un décalage dans une partie de la chaîne est indiqué, à partir duquel la première occurrence du caractère spécifique est recherchée dans la partie de chaîne. Si le caractère spécifique est trouvé, l'existence du caractère est indiquée et l'adresse ou le décalage du caractère spécifique est sauvegardé ou indiqué autrement. Si le caractère spécifique n'est pas trouvé, la non-existence du caractère est indiquée et une adresse ou décalage approprié de référence du caractère suivant immédiatement la partie de chaîne déjà examinée est sauvegardé ou indiqué autrement. Le caractère spécifique peut avoir une longueur d'un ou plusieurs octets et présenter une valeur fixe prédéfinie ou une valeur dynamique quelconque. Cette instruction peut s'exécuter en un laps de temps comparable à la durée d'exécution d'une instruction arithmétique. En outre, l'invention peut être combinée à d'autres instructions de chargement et de stockage, de manière que l'on puisse exécuter une opération de copie en appelant une ou plusieurs fois cette séquence d'instructions.

LandOfFree

Say what you really think

Search LandOfFree.com for Canadian inventors and patents. Rate them and share your experience with other people.

Rating

Method and apparatus for finding a termination character... does not yet have a rating. At this time, there are no reviews or comments for this patent.

If you have personal experience with Method and apparatus for finding a termination character..., we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Method and apparatus for finding a termination character... will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFCA-PAI-O-1895470

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.