摘要 |
PURPOSE:To convert fixed length data into variable length data at high speed by storing the effective length of the variable length data in a table for converting the fixed length data into the variable length data corresponding to the variable length data. CONSTITUTION:A memory table 12 consists of the variable length data 21 and the effective length data 22 indicating the data length of the variable length data 21. For instance, when the fixed length data 1 is inputted to a C register 11, 6 is outputted as the effective length data L and 000111 XX is outputted as the variable length data from the table 12 and according to an instruction from a controller 15, they are respectively stored in a counter 14 and a P register 13. The data is transferred one bit by one bit from the P register 13 to an S register 16 until the counter 14 goes to zero, the number of inputted data is counted by a counter 17, the transfer from the P register 13 is stopped by a carry output of the counter 17 and the data is transferred from the S register 16 to an output register 18. By inputting the fixed length data to the C register, the variable length data is outputted to the output register 18.
|