Claims
- 1. A method of processing data strings in a data processor comprising a memory having a plurality of multi-byte data word locations with each data word location having a predefined memory address and comprising a plurality of byte locations, the method comprising the steps of:
- storing a data string in the memory beginning at a starting data word location and storing a first byte of the data string at a predefined byte location in the starting data word location;
- providing an offset value defining the predefined location of the first byte of the data string in the starting data word location;
- generating a byte count mask defining position in the data string of a byte being processed;
- reading a data word containing at least one byte of the data string from the memory into a data register;
- combining the offset value together with the byte count mask to define a position of a first byte and of a last byte of the string in the memory.
- 2. The method in accordance with claim 1 and further comprising the step of processing a byte read from memory and the step of combining the offset value and the byte count mask to generate a write mask defining a position of a processed byte in a memory word location.
- 3. The method in accordance with claim 1 and further comprising the step of detecting an end condition defining a last byte in a string and the step of combining the byte mask with the offset value to define the position of the end byte in a memory data word location.
Parent Case Info
This is a division of application Ser. No. 08/003,369 filed Jan. 12, 1993, now U.S. Pat. No. 5,465,374.
US Referenced Citations (12)
Divisions (1)
|
Number |
Date |
Country |
Parent |
03369 |
Jan 1993 |
|