Editing management information on recording media

Abstract: A memory controller (12) is equipped with a memory data search circuit (35) for carrying out an identifying operation of management information corresponding to a segment located in front of or behind a segment serving as a reference for an editing operation on a recording medium (1) through search and comparison processing of managing information (U-TOC). A system controller (11) does not receive search data and execute the data search but only sets the comparison standard and an initial value and outputs an execution control signal. The editing operation performed reduces wasted space on the recording medium (1), such as a disc, and eliminates "trash areas" which are not addressable in the U-TOC .

Description: This invention relates to editing management information on recording media and is applicable, for instance, to a recording and reproducing apparatus, for example apparatus capable of recording and reproducing audio data, such as music, on a disc-type recording medium. This invention is also applicable, for instance, to a memory data search and/or retrieve circuit which may form a part of such a memory control device. Data rewritable disc media in which a user can record audio data, such as music, is well known. Such disc media is provided with a data area and managing area within the recordable area. The audio data is pre-recorded in the data area. The disc media is so designed that managing data for these areas is rewritten every time a recording operation or an erasing operation for audio data is terminated. The managing area is typically referred to as the user TOC (Table of Contents), hereinafter referred to "U-TOC". An audio recording apparatus is so designed that when an audio recording operation for a musical piece or song takes place a recordable area on a disc is located on the basis of the U-TOC information. The audio recording apparatus then records the audio data for the musical piece on this recordable area. On the other hand, the reproducing apparatus accesses the area in which audio data to be reproduced is recorded to carry out a reproducing operation for the musical piece identified from the U-TOC area. Generally, for a recordable disc medium such as a magneto-optical (MO) disc or the like, random access recording can more easily be carried out in comparison with tape-type recording medium such as DAT (Digital Audio Tape), a compact cassette tape or the like. Also it is not necessary to record a musical piece (audio data) on a continuous segment, that is, the program (the audio data for the musical piece) is discontinuously and discretely recorded in plural segments. As used herein, the term "segment" is defined as a track portion on which physically-continuous data is recorded. Typically, in a system in which data is read out of a magneto-optical disc, such data is temporarily stored into a buffer memory (buffer RAM) at a high-speed rate, and then the data is read out as an audio reproducing signal from the buffer RAM at a low-speed rate to perform demodulation processing. Access between segments enables a reproduced musical piece to be outputted without being interrupted even if the data read-out operation from the magneto-optical disc is temporarily interrupted. Accordingly, by repeating a recording or reproducing operation between the segments in a high-speed access operation, the recording or reproduction of a musical piece can be performed even when a track for the data of a musical piece is physically divided and separated into plural segments, on the condition that the access operation ends within a data reproducible time due to data accumulation caused by the difference between the write-in and read-out rates of the buffer RAM. For example, as shown in Fig. 1, it is possible that each of first and second audio data (musical songs) is continuously recorded on a segment T1 and T2, while each of fourth and fifth songs are discontinuously recorded on segments T4 (1) - T4 (4) and T5 (1) - T5 (2) . Fig. 1 is an illustrative example and in practice one segment frequently extends over several tracks to several hundreds tracks. When the recording, erasing or overwriting operation for musical pieces is repeated for the magneto-optical disc, empty areas are irregularly produced on the tracks due to the difference between play periods of musical pieces to be recorded and play periods of musical pieces to be erased. Through the above discrete recording operation, i.e., musical piece is discontinuously and discretely recorded on plural segments, any musical piece which is longer than one recordable segment can be recorded using some recordable segments and thus the data recording area can be effectively used. Audio data to be recorded is not necessarily limited to "musical piece", and any audio data may be used. In this specification, a block of data (a recording data unit) which have a linked content in combination is representatively defined as a "program" or musical piece. When the recording operation is carried out for the above type of disc medium, the audio recording operation must be continuously carried out while accessing plural segments serving as recordable areas. When the reproducing operation is carried out, the segments must be accessed in such a manner that a piece of music is accurately and continuously reproduced. In order to satisfy such a requirement, both data for linking the segments allocated to a piece of music, for example, T4 (1) - T4 (4) and data which indicates recordable areas, are stored as U-TOC information. Such information is rewritten every recording, erasing, or overwriting operation as described above, and the recording/reproducing apparatus accesses the U-TOC information and stores it into the memory, for example, at the time when a disc is loaded. Further, when a recording, reproducing, erasing or overwriting operation or the like is carried out, a head access is carried out on the basis of the U-TOC information stored in the memory for the control thereof. A recording track of the magneto-optical disc comprises continuously-formed clusters CL (1 cluster = 36 sectors) each of which includes a subdata area of 4 sectors (one sector = 2352 bytes) and a main data area of 32 sectors as shown in Fig. 2. One cluster serves as a minimum unit for the recording operation. And one cluster has a length corresponding to two or three circumferences of the track. An address is recorded every sector. The subdata area of 4 sectors is used for subdata or as a link area, and TOC data, audio data, etc. are recorded in the main data area of 32 sectors. The sector is further divided into sound groups, and two sectors are divided into 11 sound groups. Data of 512 samples are recorded in a sound group while being separated into L(left) and R(right) channels. One sound group has audio data whose duration is 11.6 msec. Next, an editing operation of the U-TOC in accordance with the audio recording, erasing, or overwriting operation will be described. Fig. 3 schematically shows the area structure of the disc in its radial direction. For a magneto-optical disc, the area structure is divided into a pre-mastered area and a groove area. The pre-mastered area is recorded with emboss pits which are represented as a pit area in Fig. 3 and a groove area which includes grooves and serves as a so-called magneto-optical area in Fig. 3. A pre-mastered TOC (hereinafter referred to as "P-TOC") serves to manage information and is repetitively recorded in the pit area. In the P-TOC, the position of the U-TOC is indicated using a U-TOC start address UST A , and further a read-out start address ROA, a start address of recordable user area RST A , a power cal (calibration) area start address PC A as indicated. The groove area is formed subsequently to the pit area at the innermost peripheral side of the disc. Within the groove area, an area extending to the address which is indicated as the read-out start address RO A in the P-TOC is used as a recordable area, and subsequently is used as a read-out area. A recordable user area of the recordable area, in which data is actually recorded, extends from the position (address A MIN ) indicated as a recordable user area start address RST A to the position (address A MAX ) just before the read-out start address RO A . An area located before the recordable user area start address RST A in the group area is used as a managing area for recording and reproducing operations, and the U-TOC as described above, etc are recorded in this area. An area whose length corresponds to one cluster is provided as a laser power calibration area from the position indicated as the power cal area start address PC A . The U-TOC is recorded at a predetermined positions in the managing area for the recording or reproducing operations over successive three clusters, and the address position at which the U-TOC is recorded is indicated by the U-TOC start address UST A . The U-TOC is provided with information on the recording status of the recordable user area as managing information. Now, it is assumed that four pieces of music or audio data M 1 to M 4 are recorded in the recordable user area as shown in Fig. 3. That is, first audio data M 1 is recorded on segments having addresses A 1 (=A MIN ) to A 2 , second music data M 2 is divided into a portion M 2(1) which is to be recorded on segments having addresses A 3 to A 4 , and a portion M 2(2) which is to be recorded on segments having addresses A 11 to A 12 . A third musical piece M 3 is recorded in segments having addresses A 5 to A 6 , and a fourth musical piece M 4 is recorded while divided into a portion M 4(1) to be recorded in segments having addresses A 9 to A 10 , and a portion M 4(2) to be recorded in segments having addresses A 13 to A 14 . In this state, segments F (1) having addresses A 7 to A 8 , and segments (F (2) ) having addresses A 15 to A 16 (=A MAX ) are allocated to recordable areas on which no music data has been yet recorded, that is, recordable free areas. This state (area structure) is managed as shown in Fig. 4 in the U-TOC. The U-TOC is provided with a corresponding table indicating data portion which includes various kinds of table pointers (P-DFA, P-EMPTY, P-FRA, P-TNO1 to P-TNO255) as shown in Fig. 4, and also with a managing table portion having 255 part tables (01h) to (FFh) in correspondence with the corresponding table indicating data portion. The numerical value affixed with an "h" are represented by hexadecimal notation. Each part table contains a start address, an end address, a track mode for one segment on the disc, and link information for linking the part table to another part table. In this construction, each part table is indicated by each kind of table pointer of the corresponding table indicating the data portion to thereby manage the segments. The table pointer P-DFA indicates a defective area on the disc. Now, assuming that no defect exists in the recordable user area as shown in Fig. 3, the table pointer P-DFA is set to "00h". The table pointer P-EMPTY indicates an unused part table. The table pointer P-FRA is used to manage free areas as recordable areas and in the case of Fig. 4 the table pointer P-FRA indicates a part table (01h). Actually, each table pointer indicates a part table with a numerical value with which the address for the part table is determined through predetermined calculation processing. Information in the free area F (1) as shown in Fig. 3 is indicated in the part table (01h), that is, the addresses A 7 and A 8 are indicated as a start address and an end address, respectively. Further, since another segment serving as the free area F (2) exists, a part table (09h) is indicated by link information of the part table (01h). In practice, a numerical value with which the address for a part table is determined through predetermined calculation processing is indicated as link information. In correspondence with the free area F (2) , the addresses A 15 and A 16 are indicated as a start address and an end address respectively in the part table (09h). Since no further segment serving as a free area exists, this part table (09h) is not required to be linked to another part table, and thus the link information thereof is set to "00h". Through the management of the free area as described above, the address for any segment serving as a free area can be obtained by searching part tables with the table pointer P-FRA being set to a starting point, and the music data or the like can be recorded on the segment serving as the free area. That music data which has already been recorded is managed in the same manner as described above. With respect to the musical pieces (music data), 255 musical pieces maximum can be managed by the table pointers P-TNO1 to P-TNO255. With respect to the first musical piece M 1 for example, the start address A 1 and the end address A 2 therefor are indicated in a part table (02h) which is indicated by the table pointer P-TNO1 (02h). Since the musical piece M 1 is recorded on one segment, the link information of the part table (02h) is set to "00h". Further, with respect to the second musical piece M 2 , the start address A 3 and the end address A 4 therefor are indicated in a part table (04h) which is indicated by the table pointer P-TNO2. In this case, the musical piece M 2 is discontinuously recorded on two segments, and thus the addresses A 3 and A 4 indicate only one segment for the first half (M 2(1) ) of the musical piece M 2 . Accordingly, in this case, a part table (06h) is indicated by the link information for the part table (04h), and the start address A 11 and the end address A 12 are recorded in the part table (06h) to indicate the other segment for the second half (M 2(2) ). No further linkage is required for this musical piece, and thus the link information of the part table (06h) is set to "00h". With respect to the third and fourth musical pieces M 3 and M 4 , the positions of segments for these musical pieces are managed by those part tables which are obtained from the table pointers P-TNO3 and P-TNO4 serving as starting points, respectively. In this case, since only four musical pieces are recorded, the table pointers P-TNO5 to P-TNO255 are not used and thus set to "00h". The segment position of each musical piece is managed in the manner as described above, and thus the reproducing operation can be properly performed even when plural musical pieces are required to be reproduced in an irregular order or when each of the musical pieces are discontinuously recorded in two or more segments. As described above, the table pointer P-EMPTY indicates an unused part table, and in this case of Fig. 4 the table pointer P-EMPTY indicates a part table (08h). On the basis of the link information of the part table (08h), unused part tables which are linked to one another until an unused part table (FFh) serving as the last part table are managed by the link information i.e., these unused part tables are subjected to the link management as shown in Fig. 4. The link information of the part table which is the last part table for the linked unused part tables, in this case, the part table (FFh), is set to "00h" to indicate no further linkage. In the course of the recording/erasing operation of musical pieces or the like for this type of disc medium, there occurs wasted areas (trash areas) which are not managed by the U-TOC having the managing mode as described above. This is caused as follows: In order to prevent music data on another audio track from being erroneously erased when a piece of music (music data) is recorded, a guard band area whose length corresponds to several clusters is provided before and after the music data, or the sound-recording start position is defined on the assumption that the sound recording is carried out on a cluster basis, or a music editing of partially erasing or synthesizing a musical piece (music data) is carried out. For example, in the case of Fig. 3, shaded portions between addresses A 4 to A 5 , addresses A 6 to A 7 and addresses A 12 to A 13 are considered segments or addresses for trash areas which do not appear in the managing mode of the U-TOC as shown in Fig. 4. The occurrence of these trash areas causes a reduction in recording capacity of the disc and expenditure of space in the part table. In order to solve this problem, it has been conventionally adopted that the U-TOC is re-edited at a prescribed time to reduce the trash areas. The editing processing of the U-TOC is executed, for example when music data is erased, or the re-editing of the U-TOC is instructed by an user's manipulation, or the control device judges an increase of trash areas. The editing processing in accordance with the erasing operation will be described. It is assumed that the music data M 3 in the state of Fig. 3 is erased as shown in Fig. 5. In this case, the segment of the music data M 3 is newly installed in a free area, and at the same time trash areas, as indicated by the shaded areas, are located before and after the segment of the music data M 3 are also created in the free area. Here, by combining the free area F (1) at the subsequent addresses A 7 to A 8 with the above free area, a new free area F (1) at addresses A 17 to A 8 can be formed, so that the trash areas at the addresses A 4 to A 5 and the addresses A 6 to A 7 can be erased. That is, the U-TOC may be rewritten so that the recordable user area can be newly managed by the U-TOC in the state of Fig. 6. Accordingly, in such a recording apparatus, the state shown in Fig. 4 is rewritten to the state shown in Fig. 7 on the basis of the U-TOC information stored in the memory. The portions as indicated by oblique lines in Fig. 7 correspond to portions rewritten from the state of Fig. 4. That is, the start address of the part table (01h) representing a free area F (1) is rewritten to the address A 17 , and the music data M 4 is newly set as the music data M 3 because the previous music data M 3 is erased. That is, the data written in the table pointer P-TNO4, that is, data indicating a part table (07h) is written in the table pointer P-TNO3, and the table pointer P-TNO4 is set to "OOh". Further, since the part table (03h) which previously indicated the segment for the music data M 3 is currently unused, it is linked subsequently to the part table (FFh) with the table pointer P-EMPTY set at a starting point, and it is managed as an unused part table. Through the editing of the U-TOC as shown in Fig. 7, the state of Fig. 6 can be realized. In order to perform the above editing, the part tables in the U-TOC are required to be searched to judge whether adjacent segments before and after the segment of the recorded music data M 3 are located in an area in which music data is recorded or a free area in which no music data is recorded. In addition, it must be judged whether any trash area exists between the segment of the music data and the segments before and after the music data segment. As is apparent from Fig. 4, any part table for a segment which is actually adjacent to a segment indicated by a part table on the disc cannot be identified from the part tables, and thus the following searching operation must be carried out. That is, the addresses of segments of all part tables are successively read in while compared with the address of a reference segment (segment of the erased music data M 3 in this case), and the segment having the nearest address is determined as an adjacent segment. Usually, this type of recording apparatus is provided with a memory controller for carrying out an output operation of memory write-in/read-out addresses and a stored data receiving operation for a memory for storing the U-TOC. A system controller (microcomputer) controls the memory controller to execute storage/read-out for data. The system controller reads in the U-TOC from the memory to control the actual recording operation, etc., and also carries out the editing operation of the U-TOC as described above. In order to perform the editing operation, the system controller carries out the searching operation for all the part tables through the memory controller as described above, and also carries out an address comparing operation for each searched part table to search adjacent segments. Therefore, it takes a long time to perform data communication of the part tables from the memory (memory controller) to the system controller, and the communicating and comparing processing as described above imposes a significantly larger load on the system processing. Particularly in a case where data reception and transmission between the memory controller and the system controller is carried out through serial communication, for example, when the processing for trash areas as described above is executed for the editing operation, the processing time requires two minutes at maximum, and this requirement for the processing time is unfavorable for practical use of the recording apparatus. European Patent Application Publication No. EP-A-0 399 853 discloses apparatus which records and reproduces information on and from a rewritable recording medium having absolute addresses and comprising an information recording area in which information entered from external devices is recorded and a TOC area in which additional information with respect to the information recorded in the information recording area is recorded. The apparatus records in the TOC area the absolute addresses indicating the recording positions of information as additional information every time the information is recorded in the information recording area. First editing means erases the additional information from the TOC area with respect to any information within the information recording area when the information is completely erased therefrom; and second editing means detects a remaining amount of any information when the information is partially erased from the information recording area, records in the TOC area absolute addresses indicating the recording positions of the remaining information part in the TOC area, after replacing the absolute addresses indicating the recording positions of its original information with those indicating the recording positions of the remaining information part when the remaining amount is not less than a predetermined value, and erases the additional information of the partially erased information from the TOC area when the remaining amount of the partially erased information is less than the predetermined value. European Patent Application No. EP-A-O 378 449 discloses a generally similar apparatus. According to the invention there is provided a method of editing management information on a recording medium which manages recorded and recordable segments to eliminate and to minimize wasted space and comprises part tables corresponding to recorded or recordable segments and corresponding tables indicating a header part table, wherein each part table has a start address, end address, and link information for connecting each part table, comprising the steps of: setting an address of a segment to be erased as a reference address; scanning addresses of recordable segments in accordance with said link information and corresponding table indicating data; comparing said reference address and scanned addresses so as to search for the nearest recordable segment to said segment to be erased; storing the address of the nearest recordable segment; scanning addresses of recorded segments in accordance with said link information and corresponding table indicating data; comparing said reference address and scanned addresses so as to search for the nearest recorded segment to said segment to be erased; storing the address of the nearest recorded segment; comparing the address of said nearest recorded segment with the address of said nearest recordable segment; merge processing in accordance with result of said comparison; editing said management information in accordance with said merge processing; and recording said management information on the recording medium. In a preferred form of implementation of the invention described hereinbelow a memory controller is provided with a memory data search circuit for searching managing information corresponding to a segment located before or after a segment on the recording medium which serves as a reference for the editing operation when the editing operation for the managing information is executed, and the system controller is so designed that data on the segment on the recording medium, serving as the reference for the searching operation, and a search execution instruction, are transmitted to the memory data search circuit to execute the searching operation when the editing operation is carried out. The editing operation is controlled on the basis of the search result received from the memory data search circuit. Such a memory control device, when used in a recording apparatus generally as described hereinbelow, can simultaneously realize increased speed-up of the editing processing of U-TOC and reduction of load imposed on the system controller for its processing. By providing the memory data search circuit which carries out the search and comparison processing of the managing information (U-TOC) in the memory controller to identify the managing information corresponding to a segment located before or after the segment on the recording medium, which serves as a reference for the editing operation, the search target data itself (that is, data of part tables in U-TOC) are not required to be transmitted to the system controller, and thus the time which has been conventionally required for this data communication becomes unnecessary in the editing operation. Further, the processing of identifying adjacent segments through the data comparison also becomes unnecessary, so that the processing load on the system controller can be reduced. The invention will now be further described, by way of illustrative and non-limiting example, with reference to the accompanying drawings, in which: Fig. 1 is a schematic view of a segment-dividable recordable disc. Fig. 2 is a schematic illustration of a track format of a disc. Fig. 3 is a schematic view partially exploded of an area state of a disc taken in a radial direction along the disc. Fig. 4 illustrates the managing states of one example of recording data on a disc. Fig. 5 is a schematic illustration of data processing following erasure of recording data on the disc. Fig. 6 is another schematic illustration of data processing after erasing recording data on the disc. Fig. 7 is a schematic illustration of U-TOC edition processing following the erasure of recording data on the disc. Fig. 8 is a block schematic diagram showing a recording and reproducing apparatus equipped with a memory control device and a memory data search circuit. Fig. 9 is a schematic diagram of P-TOC information on a disc. Figs. 10A and 10B are schematic views of an address data format of the P-TOC and U-TOC information, respectively, on the disc. Fig. 11 is a schematic illustration of U-TOC information on the disc. Fig. 12 is a schematic view illustrating the managing mode of the U-TOC information on the disc. Fig. 13 is a block schematic diagram showing the memory control device and a peripheral circuit portion. Fig. 14 is a block schematic diagram of the memory data search circuit and a peripheral circuit portion. Fig. 15 is a flowchart for a front merge processing by the memory control device. Fig. 16 is a schematic view of the front merge processing of date recorded on a disc in accordance with an embodiment of the invention. Fig. 17 is another schematic view of the front merge processing of data recorded on a disc in accordance with an embodiment of the invention. Fig. 18 is another schematic view of the front merge processing of data recorded on a disc in accordance with an embodiment of the invention. Fig. 19 is another schematic views of the front merge processing of data recorded on a disc in accordance with an embodiment of the invention. Fig. 20 is a flowchart of a rear merge processing by the memory control device. Fig. 21 is a schematic view of the rear merge processing in accordance with an embodiment of the invention. Fig. 22 is another schematic view of the rear merge processing in accordance with an embodiment of the invention. Fig. 23 is another schematic view of the rear merge processing in accordance with an embodiment of the invention. Fig. 24 is another schematic view of the rear merge processing in accordance with an embodiment of the invention. A memory control device and a memory data search circuit operating according to an embodiment of this invention will be hereunder described with reference to Figs. 8-12. This memory control device is provided in a recording and reproducing apparatus using a magneto- optical disc as a recording medium, and the memory data search circuit is provided in the memory control device. Fig. 8 is a block diagram showing the recording and reproducing apparatus. In Fig. 8, reference numeral 1 represents a magneto-optical disc on which audio data such as a musical piece or the like is recorded, and it is rotationally driven by a spindle motor 2. Reference numeral 3 represents an optical head for irradiating a laser beam onto the magneto-optical disc 1 in recording/reproducing operations. In the recording operation, the optical head outputs a high-level laser beam to heat recording tracks up to Curie temperature, and in the reproducing operation the optical head outputs a relatively-low level laser beam to detect data from reflected light through the magnetic Kerr effect. The optical head 3 is equipped with a laser diode, an optical system comprising a deflection beam splitter, an objective lens, etc., and a detector for detecting reflected light. The objective lens 3a is supported by a biaxial mechanism 4 which is displaceable so it can be moved to and away from disc 1. Reference numeral 6 represents a magnetic head for supplying the magneto-optical disc with a magnetic field which is modulated by supplied data signal, and it is disposed opposite the optical head 3 with respect to the magneto-optical disc 1. The optical head 3 and the magnetic head 6 are movable in the radial direction of the disc by a thread mechanism 5. Information which is detected from the magneto-optical disc 1 by the optical head 3 in the reproducing operation is supplied to an RF amplifier 7. The RF amplifier 7 conducts calculation processing on the supplied information to extract a reproduction RF signal, a tracking error signal, a focus error signal, an absolute position information signal (absolute position information recorded as a pregroup, wobbling group, on the magneto-optical disc 1), an address information signal, and a focus monitor signal. The extracted reproduction RF signal is supplied to an encoder/decoderunit 8. The tracking error signal and the focus error signal are supplied to a servo circuit 9, and the address information is supplied to an address decoder 10. The absolute position information and the focus monitor signal are supplied to a system controller 1 comprising a microcomputer. The servo circuit 9 generates servo driving signals on the basis of the supplied tracking error signal and focus error signal, an auto music sensor instruction signal, a seek instruction, a rotational speed detection signal of a spindle motor, which are supplied from the system controller 11, and controls the biaxial mechanism 4 and the thread mechanism 5 to perform focus and tracking control. Further, the servo circuit 9 controls the spindle motor 2 at a constant angular velocity (CAV) or constant linear velocity (CLV). The reproduction RF signal is subjected to a decoding processing such as EFM (Eight Fourteen Modulation) demodulation, CIRC (Cross Interleaved Reed-Solomon Coding) or the like in the encoder/decoderunit 8, and then it is temporarily written in a buffer RAM 13 by the memory controller 12. The data read-out operation from the magneto-optical disc 1 by the optical head 3 and the transmission of reproduced data in a system which extends from the optical head 3 to the buffer RAM 13 are carried out at 1.41 Mbit/sec and intermittently. The data written in the buffer RAM 13 is read out at such a timing that the transmission of the reproduced data is carried out at 0.3 Mbit/sec, and supplied to the encoder/decoderunit 14. Thereafter, the data is subjected to reproduction signal processing such as decode processing for an audio compression processing, converted to analog signals by a D/A converter 15, and the analog signal are supplied to a prescribed amplifier circuit from a terminal 16 to be output as audio signals, for example, Left channel (L) and Right channel (R) audio signals. The data write-in/read-out for the buffer RAM 13 is carried out using address indication through the control of the write-in pointer and the read-out pointer by the memory controller 12. The write-in pointer (write-in address) is incremented at 1.41 Mbit/sec timing as described above, and the read-out pointer (read-out address) is incremented at 0.3 Mbit/sec timing. Therefore, the buffer RAM 13 is kept in such a state that an amount of data is accumulated in the buffer RAM 13 due to the difference in bit rate between the write-in and the read-out operations. At the time when full capacity of data is accumulated in the buffer RAM 13, the increment of the write-in pointer is stopped, and the data read-out operation from the magneto-optical disc 1 by the optical head 3 is also stopped. However, the increment of the read-out pointer is continued, and thus the reproduced audio output is not interrupted. Thereafter, assuming that the read-out operation from the buffer RAM 13 is further continued and the data accumulation amount in the buffer RAM 13 is decreased below a predetermined amount, the increment of the data read-out operation and the increment of the write-in pointer W by the optical head 3 are resumed, and the data accumulation into the buffer RAM 13 is resumed. By outputting the reproduced sound signal through the buffer RAM 13 in the manner as described above, the reproduced audio output may be interrupted even when the tracking deviates due to external disturbances or the like, and by accessing an accurate tracking position before the accumulated data is used up and resuming the data read-out operation, the reproducing operation can continue with no affection on the reproduction output. Consequently, shock-proof operation can be remarkably improved. In Fig. 8, the address information output from the address decoder 10 and sub code data for the control operation are supplied through the encoder/decoder unit 8 to the system controller 11, and used for various control operations. Further, the system controller 11 is supplied with a lock detection signal of a PLL (phase locked loop) circuit for generating bit clocks for the recording/reproducing operations and a monitor signal for monitoring a lack state of a frame sync signal of the reproduction data, Left and Right channels. The system controller 11 outputs a laser control signal S LP for controlling the operation of the laser diode of the optical head 3, and it serves to carry out ON/OFF control of the output of the laser diode. At the ON-control time, the system controller 11 switches the laser power between the relatively low level output in the reproducing operation and the relatively high level output in the recording operation. When the recording operation is conducted on the magneto-optical disc 1, the recording signal (analog audio signal) supplied to the terminal 17 is converted to digital data by an A/D converter 18, and then supplied to the encoder/decoder unit 14 to be subjected to audio compression encode processing. The recording data compressed by the encoder/decoderunit 14 is temporarily written in the buffer RAM 13 by the memory controller 12, and then read out at a prescribed timing to be transmitted to the encoder/decoderunit 8. In the encoder/decoder unit 8, the data is subjected to an encode processing such as CIRC encode, EFM modulation, etc., and then supplied to a magnetic head driving circuit 15. The magnetic head driving circuit 15 supplies the magnetic head 6 with a magnetic head drive signal in accordance with the recording data which has been subjected to the encode processing. That is, application of N or S magnetic field to the magneto-optical disc 1 by the magnetic head 6 is executed. At this time, the system controller 11 supplies a control signal to output laser beam having a recording level to the optical head. A reference numeral 19 represents an operation input unit provided with keys which are manipulated by a user, and a reference numeral 20 represents a display unit comprising a liquid crystal display, for example. The operation input unit 19 is provided with a sound-recording key, a reproducing key, a stop key, an AMS (auto music scan) key, a search key, etc. for user's manipulation. When the recording/reproducing operation is conducted on the disc 1, managing information recorded on the disc 1, that is, P-TOC and U-TOC are read out, and in accordance with the managing information, the system controller 11 identifies the addresses of segments to be recorded on the disc 1 and the addresses of segments to be reproduced. This managing information is held in the buffer RAM 13. Therefore, the buffer RAM 13 is divided into a buffer area for the recording data/reproducing data, and an area for the managing information. The system controller 11 executes the reproducing operation for the innermost peripheral side of the disc having the managing information recorded thereon at the time when the disc 1 is installed, thereby reading out the managing information, and stores it into the buffer RAM 13, whereby the managing information is allowed to be referred to later for the recording/reproducing operations. The U-TOC is edited in accordance with the recording, erasing, or overwriting operation of data. If occasion demands, the U-TOC is edited with a merge processing for removing trash areas as described above to be rewritten as a new one. The system controller 11 conducts this editing processing on the U-TOC information stored in the buffer RAM 13 every recording, erasing or overwriting operation, and through the above rewriting operation, it can rewrite an U-TOC area on the disc 1 at a prescribed timing. Here, the P-TOC and the U-TOC on the disc 1 will be described. The P-TOC information is used to indicate recordable areas (recordable user area, etc.) on the disc and management of the U-TOC area. When the disc 1 comprises a premastered disc which is an optical disc exclusively used for reproduction, music data which is fixedly recorded (like ROM) by P-TOC can be managed. The format of the P-TOC is shown in Fig. 9. Fig. 9 shows one segment (sector 0) for P-TOC information which is repetitively recorded in an area used for P-TOC, for example, in a ROM area at the innermost peripheral side of the disc 1. The data area for the sector of the P-TOC comprises 4 bytes X 588 (=2352 bytes), and at the head position of the data area is provided as a header with a sync pattern of one byte data for all "0" or all "1", and addresses representing a cluster address and a sector address, etc., thereby indicating the P-TOC area. Subsequently, an identification ID of ASCII corresponding to a letter "MINI" is added at a predetermined address position. Subsequently, a disc type, a sound recording level, the number of a first recorded music data (musical piece) (First TNO), the number of a last recorded music data (musical piece) (Last TNO), a read-out start address ROA, a power cal area start address PC A , a start address UST A of U-TOC (data area of U-TOC sector 0 of Fig. 15 as described later), a start address RST A for a recordable area, as recorded. The start addresses of 24 bits (3 bytes) are divided into upper digits of 16 bits which are used as a cluster address, and lower digits of 8 bits which are used as a sector address as shown in Fig. 10A, and as shown in Fig. 3, the area management on the disc 1 is carried out by these start addresses as described above. Further, there is provided a corresponding table indicating data portions having table pointers (P-TNO1 to P-TNO255) for corresponding recorded music data (musical pieces) to part tables in a managing table portion as described later. Further, in a subsequent area to the corresponding table indicating data portion is provided a managing table portion which is equipped with 255 part tables of (01h) to (FFh) in correspondence with the table pointers (P-TNO1 to P-TNO255) in the corresponding table indicating data portion (the numerical value affixed with "h" are represented by hexadecimal notation). Each part table is so designed that a start address serving as a starting point for a segment, an end address serving as an end point for the segment, and mode information (track mode) for the segment (track) are recordable. As the mode information for the track in each part table are recorded information as to whether the segment is set to an over-write inhibition or data copy inhibition mode, information as to whether it is audio information, an identification information of monaural/stereo, is provided. The segment content of each of the part tables from (01h) to (FFh) in the managing table portion is indicated by each of the table pointers (P-TNO1 to P-TNO255) of the corresponding table indicating data portion. That is, for the first music data (the first musical piece), a part table is indicated (for example (01h)). Actually, in the table pointer a numeric value is recorded with which a part table can be indicated at a byte position within the P-TOC sector 0 by a prescribed calculation processing is recorded as the table pointer P-TNO1. In this case, the start address of the part table (01h) becomes a start address for the recording position of the music data of the first musical piece, and similarly the end address becomes an end address for the recording position of the music data of the first musical piece. Further, the track mode information becomes information for the first musical piece. The start address/end addresses of 24 bits (3 bytes) in the part table are divided into upper digits of 14 bits which serve as a cluster address, subsequent 6 bits which serve as a sector address, and subsequent lower digits of 4 bits which serve as a sound group address. Likewise, for a second musical piece, a start address, an end address and track mode information for the recording position of the second musical piece are recorded in the part table (for example (02h) as indicated by the table pointer P-TNO2. Likewise, table pointers until P-TNO255 are provided, and the musical pieces until a 255th musical piece can be managed on the basis of the P-TOC. By forming the P-TOC sector 0 as described above, a predetermined musical piece can be accessed and reproduced, for example. As described later, a disc which is subjected to the editing operation of U-TOC is a recordable/reproducible magneto-optical disc. In this case, a so-called premastered music data area is not provided on the disc, and thus the corresponding table indicating data portion and the managing table portion as described above are not used. These are managed by U-TOC as described later. Therefore, all the bytes are set to "00h". However, for a hybrid type of disc having both a ROM area and magneto-optical area on which music data and other data are recorded, the music data in the ROM area is managed using the corresponding table indicating data portion and the managing table portion. Next, the U-TOC will be described. Fig. 11 shows the format of one sector of the U-TOC. It is used as-a data area for recording audio information such as a musical piece through a user's sound-recording. It is used for managing information on unrecorded areas (free areas) on which music data is newly recorded. For example, when a piece of music is recorded on disc 1, the system controller 11 searches a free area on the disc on the basis of the U-TOC, and records the music data of the musical piece on a free area it has located. Further, in the reproducing operation, the system controller 11 identifies an area in which music data to be reproduced is recorded, and accesses the area to perform the reproducing operation. Like the P-TOC, a sector (sector 0) of the U-TOC as shown in Fig. 11 is first provided with a header, and subsequently with data of a maker code, a model code, the number of a first track (First TNO), the number of a last track (Last TNO), a sector use status, a disc serial number, a disc ID, at predetermined address positions, respectively. Further, it is provided with an area on which various kinds of table pointers (P-DFA, P-EMPTY, P-FRA, P-TNO1 to P-TNO255) are recorded as the corresponding table indicating data portion to identify areas for musical pieces which have been recorded through the user's sound recording system, and unrecorded areas by corresponding these areas to the managing table portion as described later. Further, 255 part tables from (01h) to (FFh) are provided as the managing table portion corresponding to the table pointers (P-TNO1 to P-TNO255) of the corresponding table indicating data portion, and in each part table are recorded a start address serving as a starting point for a segment, an end address serving as an end point for the segment and mode information (track mode) for the segment, like the P-TOC sector 0 as shown in Fig. 9. Further, for the U-TOC sector 0, there may occur a case where a segment indicated in each part table is linked to another segment, and thus the U-TOC sector 0 is so designed that the link information for indicating a part table in which the start and end addresses for the linked segment are recorded. The start address/end address of 24 bits (3 bytes) in the part table are divided into upper digits of 14 bits which serve as a cluster address, subsequent 6 bits which serve as a sector address, and subsequent lower digits of 4 bits which serve as a sound group address. As described above, in this type of recording and reproducing apparatus, even when music data is physically discontinuously recorded, that is, it is recorded over plural segments, the reproducing operation is carried out while access between the segments is carried out, so that the reproducing operation can be carried out without hindrance. With respect to a music piece or the like which is recorded through the user's sound recording system, for the purpose of effective use of recordable areas, it may be discontinuously recorded over plural segments. Therefore, the link information is provided, and, by indicating a part table to be linked on the basis of one of the numbers (01h) to (FFh) allocated to the respective part tables the linkage of the part tables can be performed. Actually, they are provided as numerical values which correspond to the byte positions in the U-TOC sector 0 through the prescribed calculation processing. Ordinarily, each of the music pieces which are recorded beforehand is not subjected to segment division, and the link information thereof is set to "(00h)" in the P-TOC sector 0 as shown in Fig. 9. Thus, in the managing table portion of the U-TOC sector 0, one part table represents one segment, and for a music data comprising three linked segments, the positions of these segments are managed by the three part tables which are linked to each other with the link information. The segment contents of the respective part tables from (01h) to (FFh) in the managing table portion of the U-TOC sector 0 are represented by the table pointers (P-DFA, P-EMPTY, P-FRA, P-TNO1 to P-TNO255) in the corresponding table indicating data portion. The table pointer P-DFA is provided for indication of a defective area on the magneto-optical disc 1, and indicates a part table or a head part table of plural part tables in which a track portion (=segment) serving as a defective area due, for example, to a scratch is indicated. That is, when any defective segment exists, any one of (01h) to (FFh) is recorded in the table pointer P-DFA, and the defective segment is indicated with start and end addresses in the corresponding part table. When another defective segment exists, the defective segment is indicated by the link information for the part table, and the defective segment is indicated in that part table. When no other defective segments exist, the link information is set to "(00h)", and no subsequent linkage is indicated. The table pointer P-EMPTY indicates an unused part table or a head part table of plural unused part tables. When any unused part table exists, any one of (01h) to (FFh) is recorded as the table pointer P-EMPTY. When plural unused part tables exist, the part tables are successively indicated from the part table indicated by the table pointer P-EMPTY on the basis of the link information, and all of the unused part tables are linked with one another on the managing table portion. For example, for a magneto-optical disc on which no audio data such as music data is recorded and no defect exists, the pointer designation which is used is P-FRA. For example, if a part table (Olh) is indicated by the table pointer P-FRA, then a part table (02h) is subsequently indicated with the link information of the part table (01h), and then a part table (03h) is subsequently indicated with the link information of the part table (02h). This linking operation is repeated until the linkage to the part table (FFh) is carried out. In this case, the link information of the part table (FFh) is set to "(00h)" which represents no subsequent linkage. The table pointer P-FRA represents a free area, containing an erased area, in which data can be written on the magneto-optical disc 1, and indicates a part table or a head part table of plural part tables in which a track portion (=segment) serving as a free area is indicated. That is, when any free area exists, any of (01h) to (FFh) is recorded in the table pointer P-FRA, and a segment serving as a free area is indicated with its start and end addresses in the corresponding part table. Further, when a plurality of segments as described above exist, that is, plural part tables exist, the part tables are successively indicated on the basis of the link information until the part table whose link information is set to "(00h)". Fig. 12 schematically shows the management state of segments serving as free areas by the part tables. When each of segments (03h), (18h), (1Fh), (2Bh), (E3h) serve as a free area as shown in Fig. 12, this management state is represented by linkage of the part tables (03h), (18h), (1Fh), (2Bh), (E3h) in the corresponding table indicating data portion. The defective areas and the unused part tables can be managed in the same manner as described above. The table pointers P-TNO1 to P-TNO255 represent the audio data for musical pieces which are recorded on the magneto-optical disc 1 by the user. For example, the table pointer P-TNO1 indicates a part table indicating a segment or a head segment of plural segments in which data of a first musical piece is recorded. For example, when a first piece of music is recorded on the disc without dividing a track into sections (that is, with one segment), the recording area of the first musical piece is recorded with the start and end addresses of a part table which is indicated by the table pointer P-TNO1. When a second piece of music is discontinuously recorded on plural segments of the disc, the respective segments indicating the recording position of the musical piece are successively indicated in a time order. That is, on the basis of the part table indicated by the table pointer P-TNO2, the other part tables are successively indicated by the link information in the time order, and finally linked to a part table whose link information is set to "(00h)", the same mode as shown in Fig. 12. As described above, the second musical piece is recorded with successively indicating all the segments in which the data of the second musical piece is recorded, so that the complete musical piece can be reconstructed from the discrete segments or the recording area can be effectively used through the access of the optical head 3 and the magnetic head 6 when the second musical piece is reproduced or the area of the second musical piece is over-written using the U-TOC sector 0. As described above, the area management on the disc is carried out by the P-TOC, and the musical pieces (audio data) which are recorded in the recordable user area, the free areas, etc. are managed by the U-TOC. The TOC information is read into the buffer RAM 13, and is accessed by the system controller 11. As described above, the U-TOC editing processing containing the merge processing for extinguishing trash areas is carried out, for example when the erasing operation is carried out. The memory control device and the memory data search circuit of this embodiment are constructed as being suitable for the above processing. The memory control device of this embodiment is formed by the memory controller 12 under the control function of the system controller 11 in the recording and reproducing apparatus as shown in Fig. 8. The memory data search circuit of this embodiment is provided in the memory controller 12. The memory control device, the memory data search circuit and the executed editing processing of the U-TOC will be described with reference to Figs. 13-24. Fig. 13 is a block diagram showing the inner construction of the memory controller 12. Reference numeral 30 represents a disc drive interface unit, and serves to receive and hold record/reproduction data D t and TOC information TD t for the disc drive side, that is, the encoder/decoder unit 8. A RAM data interface unit 31 serves to perform data write-in/read-out operations and hold the data for the buffer RAM 13. The data to be subjected to the write-in/read-out operations are the record/reproduction data D t and the TOC information TD t . A reference numeral 32 represents an audio compression interface unit, and serves to receive and hold the record/reproduction data D t for the audio compression unit, that is, the encoder/decoderunit 14. A controller interface unit 33 serves as an interface for the system controller 11. The controller interface unit 33 carries out reception and transmission of the TOC information TD t from and to the system controller 11, receives a control signal from the system controller 11, and holds this data. An address counter 32 serves to generate a write-in address/read-out address (Mad) on the basis of the control signal from the system controller 11 and outputs this data to the buffer RAM 13. Reference numeral 35 represents a memory data search circuit, and upon input of various control signals from the system controller 11 through the controller interface unit 33, can carry out the search operation of the TOC information TD t stored in the buffer RAM 13 on the basis of the input control signals. "B" represents a control bus for connecting various parts to each other. The construction of the memory data search circuit 35 is shown in Fig. 14. Referencenumeral 40 represents an output selection unit, and reference numeral 41 represents a reference address register comprising a D flip-flop. In the reference address register 41 is set a reference address AD ref which is supplied through a controller interface unit 33 from the system controller 11. The start address or end address of a segment serving as a reference for U-TOC editing processing as described later corresponds to the above reference address AD ref . The output selection unit 40 selects a search target address AD R to be compared with the reference address AD ref from the data read (data in the part table of U-TOC) out from the buffer RAM 13 in the search operation as described later, and outputs it. Near-by address register 43 comprises a D flip-flop, and it is designed to latch the address AD R output from the output selection unit 42. The address AD prev which is latched by the near-by address register 42 finally becomes a search address which is obtained through the search processing of the memory data search circuit 34. Temporary register 43 is input with the link information (or table pointer) recorded in the same part table as the search target address AD R which is output from the output selection unit 40. The temporary register 43, which has a two-staged register structure, for example, holds the current input link information and the previous input link information. The link information which was previously input and stored is set as search target part information LK R . Link register 44 latches the search target part information LK R output from the temporary register 43 as search part information LK prev . The link register 44 comprises a D flip-flop. Comparator 45 compares the reference address AD ref latched in the reference address register 41 with the search target address AD R output from the output selection unit 40. Comparator 46 compares the search target address AD R output from the output selection unit 40 with the search address AD prev latched in the near-by address register 42. Control logic 47 outputs a latch signal to the near-by address register 42 and the link register 44 on the basis of the comparison result of the comparators 45 and 46, thereby allowing the near-by address register 42 to carry out a renewing operation, that is, to renew the search target address AD R output from the output selection unit 40 to a new search address AD prev , and allowing the link register 44 to execute a renewing operation of the search part information LK prev so that the search target part information LK R latched in the temporary register 43 is renewed to a new search part information LK prev . For example, when the editing of the U-TOC is carried out in accordance with the erasure of a music data, the segments located before (in front of) and after (behind) the segment of the erased music data (the segment serving as a reference for the editing) are searched. In this case, if any trash area exists, the merge processing of extinguishing the trash area is carried out (see Figs. 3-7). By providing the memory data search circuit 35 as described above in the memory controller 12, the search processing of the segments before and after the editing reference segment (i.e., the segment serving as the reference for the editing) is executed by the memory data search circuit 35, and thus the system controller 11 is not required to execute the above search operation. The merge processing when the U-TOC editing processing is carried out will be described with reference to the flowcharts of Figs. 15 and 20. The merge processing is divided into a front merge processing (at an inner peripheral side of the disc) of the editing reference segment, and a rear merge processing (at an outer peripheral side of the disc) of the editing reference segment, and the respective processings of the system controller 11 for these front and rear merge processings will be individually described with reference to Figs. 15 and 20, respectively. The processing of the system controller 11 for the front merge processing is carried out as shown in Fig. 15. First, the system controller 11 sets as a reference address N ref the start address of a segment serving as a reference for the editing of a reference free area (S101). For example, it is assumed that as shown in Figs. 16-19, the data of a piece of music is recorded in a segment (as indicated by oblique lines) of addresses A 26 to A 27 on the disc 1 and the merge processing is executed in accordance with the erasure of this music data. The segment between the addresses A 26 to A 27 serves as an editing reference segment, i.e., a reference free area, in place of the free area, the area on which the music data is erased, and the start address A 26 of the reference free area is set as a reference address N ref . Figs. 16-19 show various cases for the area arrangement at the front side of the reference free area. Fig. 16 shows an area arrangement where a music-data recorded segment is located in front of a reference free area and a trash area 51 exists between the music-data recorded segment and the reference free area. Fig. 17 shows an area where a music-data recorded segment exists just in front of a reference free area and no trash area exists. Fig. 18 shows an area arrangement where a segment serving as a free area is located in front of a reference free area and a trash area 53 exists between the free area and the reference free area. Fig. 19 shows an arrangement where a segment serving as a free area exists just in front of a reference free area and no trash area exists. In the following front merge processing, one of the above area arrangements is identified for the current area arrangement, and the front merge processing is carried out in accordance with the identification result. After the reference address N ref is set, the system controller 11 conducts a front search mode on the memory controller 12. That is, the memory controller 12 is controlled to identify or select the area arrangement in front of and adjacent to the reference free area from the area arrangements as shown in Figs. 16, 17, 18, and 19 (S102). Accordingly, the reference address N ref is supplied to the reference address register 41 of the memory data search circuit 35 through the controller interface unit 33, and also a latch control command is supplied thereto, whereby the reference address register 41 is controlled to hold the reference address N ref as the reference address AD ref . Likewise, the address A MIN is supplied as an initial value of the search address AD prev to the near-by address register 42, and latched in the register 42. The address A MIN is an address at the head position of the recordable user area as shown in Fig. 3. The search part information LK prev of the link register 44 is then cleared. Next, the search mode signal S SM is output to the output selection unit 40 and the control logic 47. The search mode signal S SM is an identifier signal with which the memory data search circuit 35 judges whether it should execute the front merge processing or the rear merge processing. Upon supply of the search mode signal S SM indicating the front merge processing, the output selection unit 40 is set so that the end address of the address data of the part table in the read-in U-TOC is output as the search target address AD R . Further, on the basis of the search mode signal S SM indicating the front merge processing, the control logic 47 is so set as to output a latch control signal to the near-by address register 42 and the link register 44 when the relation of AD R < AD ref is obtained through the comparison between the reference address AD ref and the search target address AD R in the comparator 45, and the relation of AD prev < AD R is also obtained through the comparison between the search address AD prev and the search target address AD R in the comparator 46, thereby executing the renewing operation of the search address AD prev and the search part information LK prev . When switching on the front search mode for the memory controller 12 as described above, the system controller 11 first controls the execution of the search for those part tables which are derived from the table pointer P-FRA with respect to the U-TOC stored in the buffer RAM 13 (S03). That is, the system controller 11 controls the memory controller 12 to execute the lead scan of the part tables for the free areas, and waits for its operation until this lead scan is terminated (S104). In the lead scan, the segment serving as a free area which is located in front of and nearest to the reference free area is searched in the memory data search circuit 35 of the memory controller 12. That is, the memory controller 33 successively generates addresses for the part tables derived from the table pointer P-FRA by the address counter 34, and through this operation, the data of the part tables which target free areas are successively taken in through the RAM data interface unit 31. Here, the data taken in from one part table comprises a start address of 3 bytes, an end address of 3 bytes, a track mode information of one byte and a link information of one byte, totaling eight bytes. When the memory data search circuit 35 takes this data through the controller interface unit 33, first, the link information is taken in the temporary register 43. In this case, the table pointer P-FRA is taken into the temporary register 43 when the lead scan is started, and the value of the table pointer P-FRA is held as previous link information in the temporary register at the time when the first part table is read in, so that the value of the table pointer P-FRA and the link information which is currently taken in are respectively held by the two-staged register structure. At this time, the temporary register 43 holds the value of the table pointer P-FRA as the search target part information LK R . Further, the end address recorded in the part table is output as the search target address AD R from the output selection unit 40. The reference address AD ref (in this case, address A26) and the search target address AD R (the end address of the part table) are compared in the comparator 45. Here, if AD R > AD ref , it indicates that the read-in part table corresponds to a part table for a segment located behind the reference free area. If AD R < AD ref , it indicates that the read-in part table corresponds to a part table for a segment located in front of the reference free area. In the comparator 46, the search address AD prev (in this case, initially, the address A MIN which is an initial value) and the search target address AD R , the end address of the read-in part table. Here, if AD R > AD prev , it indicates that the currently read-in part table is for a segment located behind a segment whose end address corresponds to the search address AD prev . If AD R < AD prev , it indicates that the read-in part table is for a segment located in front of a segment whose end address corresponds to the search address AD prev . With respect to those part tables which are read in at the stage where the search address AD prev has not yet been renewed, the search address ADprev to be compared is set to the initial value A MIN , and thus the relation of AD R > AD prev is satisfied at all times. Here, if AD R < AD ref in the comparator 45, when the search address AD prev is the initial value A MIN , it results in AD R > AD prev in the comparator 46, the read-in part table is identified as a part table which is located in front of the reference free area and indicates a segment serving a free area relatively near to the reference free area, and the control logic 47 outputs the latch control signal to the near-by address register 42 and the link register 44 to set the address AD R to a new search address AD prev . Further, the control logic 47 controls the link register 44 to latch the search target part information LK R latched in the temporary register 43 as the search part information LK prev . Since the search target part information LK R in the temporary register 43 is the link information of the previously read-in part table (in this case, the value of the table pointer P-FRA), the search address AD prev in the near-by address register 42 is renewed as described above and at the same time the position information of the part table in which the end address serving as the value of the renewed AD prev is recorded is held as the search part information LK prev in the link register 44. Through this operation, the end address of the segment in front of the reference free area is held as the search address AD prev , and the position of the part table indicating the segment is indicated by the search link information LK prev . Subsequently, a part table linked from the part table is read in through the lead scan, and the link information of the part table is taken into the temporary register 43. At this time, the search target part information LK R in the temporary register 43 becomes the previously read-in link information, that is, the position of the currently taken- in part table on the U-TOC is indicated by the search target part information LK R . Further, the end address of the part table is output as the search target address AD R from the output selection unit 40. At this time, the search target address AD R and the reference address AD ref are compared with each other in the comparator 45, and the search target address AD R and the search address AD prev are compared with each other in the comparator 46. If AD R < AD ref and AD R > AD prev , the read-in part table is identified as a part table for a segment which is in front of and nearer to the reference free area as compared with a part table in which the end address is held as the search address AD prev at this time point. Accordingly, the control logic 47 controls the near-by address register 42 and the link register 44 to execute the latch operation and the renewing operation so that the search address AD prev is set to the end address in the read-in part table, and it is renewed to link information indicating the position of the read-in part table as the search part information LK prev , that is, a value which is held as the search target part information LK R in the temporary register 43 at this time point. Subsequently, the linked part tables are successively read in. The comparison operation of the comparators 45 and 46 is carried out every time the above read-in operation is carried out. If AD R < AD ref and AD R > AD prev , the search address AD prev of the near-by address register 42 and the search part information LK prev of the link register 44 are renewed. On the other hand, if the result that AD R < AD ref and Ad R > AD prev is not obtained, the search address ADprev of the near-by address register 42 and the search part information LK prev of the link register 44 are not renewed, and they are kept to these values of the previous renewing operation. Accordingly, when the above operation is carried out in accordance with the lead scan on all the part tables which are derived from the table pointer P-FRA in the memory data search circuit 35, the end address of a segment serving as a free area which is in front of and nearest to the reference free area at the time when the above operation is terminated is set as the search address AD prev , and the part table indicating the segment is kept as the search part information LK prev . When the lead scan of the part tables from the table pointer P-FRA is terminated in the memory controller 12, the processing of the system controller 11 goes to a step S105 of Fig. 15 to take in the search address AD prev , and the search part information LK prev which are held in the memory data search circuit 35. The search address AD prev is held as the near-by end address N 1 , and the search part information LK prev is held as the near-by free area part information NL 1 . Subsequently, the system controller 11 sets the address A MIN as the search address AD prev serving as the initial value in the memory data search circuit 35 of the memory controller 12 again, and the search part information LK prev of the link register 44 is cleared (S106). After the system controller 11 controls the memory controller 12 to perform the above setting of the memory data search circuit 35, the system controller 11 controls the memory controller 12 to successively execute the search operation of those part tables which are led by each of the table pointers P-TNO1 to P-TNO255 for the U-TOC held in the buffer RAM 13 (S108). That is, the memory controller 12 is controlled to execute the lead scan of the part tables for segments on which a piece of music is recorded (music data area), and the processing waits until the lead scan is terminated (S109). Through the lead scan operation, the segment serving as the music data area which is in front of and nearest to the reference free area is searched in the memory data search circuit 35 of the memory controller 12. That is, the memory controller 33 successively generates the addresses on the part tables which are led using the table pointer P-TNO1 by the address counter 34, and through this operation, the data of the part tables which target one or plural segments for a first piece of music are successively taken in through the RAM data interface unit 31. Here, the data which is taken in from one part table comprises a start address of 3 bytes, an end address of 3 bytes, a track mode information of 1 byte and a link information of 1 byte, totally, 8 bytes. When the lead scan of the part tables for the first musical piece is terminated, subsequently part tables derived from the table pointer P-TNO2 for a second musical piece, and further subsequent part tables derived from the table pointer P-TNO3 for a third musical piece are successively subjected to the lead scan, and thus the part tables which correspond to the segments for all the recorded musical pieces are successively read out from the buffer RAM 13. When taking in the data of these part tables through the controller interface unit 33, the memory data search circuit 35 executes the comparison processing for the end address of each segment and the holding of the previous link information like the part tables for the free areas. If AD R > AD prev and AD R < AD ref in accordance with the comparison result of the comparators 45 and 46, the read-in part table is judged to be a part table indicating a segment of a music data area which is located in front of and relatively near to the reference free area, and the control logic 47 outputs the latch control signal to the near-by address register 42 and the link register 44. Further, the address AD R is set as a new search address AD prev and the search target part information LK R latched in the temporary register 43 is latched as the search part information LK prev in the link register 44. Next, the part tables are successively read in. Every time this read-in operation occurs, the comparison operation is carried out by the comparators 45 and 46. If AD R < AD ref and AD R > AD prev , the search address AD prev of the near-by address register 42 and the search part information LK prev of the link register 44 are renewed. On the other hand, if the result that AD R < AD ref and AD R > AD prev is not obtained, the search address AD prev of the near-by register 42 and the search part information LK prev of the link register 44 are not renewed, and the values at the previous renewing operation are held without being renewed. Accordingly, when in the memory data search circuit 35, the above operation is carried out in accordance with the lead scan of all the part tables which are led by the table pointers P-TNO1 to P-TNO255. Since no part table exists for a table pointer corresponding to "00h" out of the table pointers P-TNO1 to P-TNO255, the lead scan is not required, and for example when only three pieces of music are recorded, no lead scan is required for the table pointers P-TNO4 to P-TNO255. At the end time of the above operation, the end address of the segment which corresponds to a music data area in front of and nearest to the reference free area is held as the search address AD prev , and the part table indicating the segment is held as the search part information LK prev . When the lead scan of the part tables from the table pointers P-TNO1 to P-TNO255 by the memory controller 12 is terminated, the processing of the system controller 11 goes to a step S109 of Fig. 15 to take in the search address AD prev and the search part information LK prev held in the memory data search circuit 35. The search address AD prev is held as a near-by music area address N 2 , and the search part information LK prev is held as a near-by music data area part information NL 2 . At this time, the system controller 11 compares the near-by free area address N 1 and the near-by music data area address N 2 (S110). Through this comparison, it is determined whether the free area or the music data area is located in front of the reference free area. For example, when the music data area exists just before the reference free area as shown in Figs. 16 and 17, the near-by free area address N 1 corresponds to an address A 21 , and the near-by music data area address N 2 corresponds to an address A 23 , so that it is satisfied that N 1 < N 2 (S110 → Yes). On the other hand, when the free area exists just before the reference free area as shown in Figs. 18 and 19, the near-by free area address N 1 corresponds to the address A 23 , and the near-by music data area address N 2 corresponds to the address A 21 , so that it is satisfied that N 1 > N 2 (S110 → No). When N 1 < N 2 at the step S110 and a music data area exists in front of the reference free area, the system controller 11 reads the address of the part table in accordance with the near-by audio data part NL 2 (S111). Then, the near-by music data area address N 2 is subtracted from the reference address N ref , and through this operation it is judged whether any trash area exists between the reference free area and the music data area just before the reference free area (S111). If the difference between the near-by music data area address N 2 and the reference address N ref corresponds to the difference of one sound group, the reference free area and the music data area just before the reference free area are completely adjacent to each other, and no trash area exists. That is, the area arrangement as shown in Fig. 17 is identified. In this case, the merge processing for a trash area is not required, and thus the front merge processing is terminated (S112 → YES). On the other hand, if the difference between the near-by music data area address N 2 and the reference address N ref corresponds to the difference of two or more sound groups, a trash area 51 exists between the reference free area and the music data area just before the reference free area, as shown in Fig. 16, is identified. In this case, the merge processing for the trash area is executed (S112 → S113). As shown in Fig. 16), the start address of the reference free area is renewed from the address A 26 to the address A 24 and the renewed value is stored. The address A 24 is calculated on the basis of the calculation of the near-by music data area address N 2 + 1. Through this operation, the reference free area is completely adjacent to the just-before music data area in the system controller 11, and it is recognized as an area arrangement where no trash area exists. If N 1 > N 2 at the step S110 and any free area is located at a front side, the merge processing is executed without judging the presence or absence of any trash area (S110→S113). The merge process is explained below. the system controller 11 sets the near-by start address of free area N1 as the start address of new free area. (S114) And the system controller entries part table which is indicated by the near-by free area art information NL 1 as part table of P-Empty (S115). (Referring to Fig. 7.) That is, by combining the reference free area and the front free area with each other, even if any trash area exists, the trash area can be automatically extinguished. For example in the case where the reference free area and the just-before free area are completely adjacent to each other and no trash area exists as in Fig. 19, the start address A 24 of the reference free area is identified as the start address A 22 of the free area, and the addresses A 22 to A 27 are identified as being allocated to a reference free area as shown in Fig. 19. After the front merge processing and the rear merge processing as described later are terminated, the rewriting editing of the U-TOC is carried out. For the actual editing of the U-TOC, the end address of the part table in which the segment for a free area starting from the address A 22 is indicated is renewed from the address A 23 to the address A 27 . However, when the free area is further combined with a free area at a rear side of the reference free area in the rear merge processing as described later, the end address of the part table having the address A 22 as the start address is rewritten to the end address of the rear free area. When any trash area 53 exists between the reference free area and the just-before free area as shown in Fig. 18, the start address A 24 of the reference free area is recognized as the start address A 22 of the front free area, and the addresses A 22 to A 27 are newly identified as being allocated to the reference free area, so that the trash area is automatically extinguished. When the front merge processing as described above is terminated, then the system controller 11 executes the rear merge processing for free areas and music data areas behind the reference free address. The processing of the system controller 11 for the rear merge processing is shown in Fig. 20. First, the system controller 11 sets the end address of an editing reference segment (a segment serving as an editing reference) as a reference address N ref (S201). For example when the segment of the addresses A 24 to A 27 or the segment of the addresses A 24 to A 29 is set as the above reference free area, indicated by oblique lines, after the front merge processing as described above as shown in Figs. 21-24, the end address A 27 (A 29 in the case of Fig. 22) of the reference free area is set as the reference address N ref . Figs. 21-24 show various area arrangements for the rear side of the reference free area. Fig. 21 shows an area arrangement where a segment in which recorded music data is located behind the reference free area and a trash area 55 exists between the music data area and the reference free area. Fig. 23 shows an area arrangement where a segment in which recorded music data is located just behind the reference free area and no trash area exists. Fig. 23 shows an area arrangement where a segment serving as a free area is located behind the reference free area and a trash area 57 exists between the free area and the reference free area. Fig. 24 shows an area arrangement where a segment serving as a free area is located just behind the reference free area and no trash area exists. In the rear merge processing as described below, the current area arrangement is identified as one of the above area arrangements and the rear merge processing is carried out in accordance with the identification result. After setting the reference address N ref (S201), the system controller 11 executes a rear search mode for the memory controller 12. That is, the system controller 11 controls the memory controller 12 to identify one of the area arrangements as shown in Figs. 21, 22, 23, and 24 in which the rear and adjacent position of the reference free area is kept (S202). Accordingly, the reference address N ref and the latch control command are supplied to the reference address register 41 of the memory data search circuit 35 through the controller interface unit 33 of the memory controller 12, and the reference address register 41 is controlled to hold the reference address N ref as the reference address AD ref . That is, the reference address corresponds to the end address of the reference free area which is opposite to the front merge processing in which the reference address corresponds to the start address of the reference free area. Further, the address A MAX is supplied as an initial value to the near-by address register 42, and latched. The address A MAX is an address at the final position of the recordable user area as shown in Fig. 140, and it is located just before a read-out start address RO A . The search part information LK prev of the link register 44 is then cleared (S202). Next, the search mode signal S SM is output to the output selection unit 40 and the control logic 47. The search mode signal S SM in this case is a signal with which the memory data search circuit 35 identifies either the front merge processing or the rear merge processing to be executed. When the search mode signal S SM indicating the rear merge processing is supplied, the output selection unit 40 is set to output as the search target address AD R the start address of the address data of the read-in part table in the read-in U-TOC. On the basis of the search mode signal S SM indicating the rear merge processing, the control logic is set to output the latch control signal to the near-by address register 42 and the link register 44 when the result of AD R > AD ref is obtained through the comparison between the reference address AD ref and the search target address AD R in the comparator 45. Also, the result of AD prev > AD R is obtained through the search address AD prev and the search target address AD R in the comparator 46, thereby executing the renewing operation of the search address AD prev and the search part information LK prev . Subsequently, when switching on the rear search mode, the system controller 11 controls the memory controller 12 to execute the search operation of the part tables let by the table pointer P-FRA of the U-TOC held in the buffer RAM 13 (S203). That is, the system controller 11 controls the memory controller 12 to execute the lead scan of the part tables for the free areas, and awaits its operation until the lead scan is terminated (S204). Through the lead scan, the segment serving as a free area which is behind and nearest to the reference free area is searched in the memory data search 35 of the memory roller 12. The memory controller 33 successively generates the addresses for the part tables which are led from the table pointer P-FRA by the address counter 34, and through this operation the data of the part tables targeting free areas are successively taken in through the RAM data interface unit 31. That is, like the front merge processing, a start address of 3 byte, an end address of 3 byte, a track mode information of one byte and a link information of one byte, totally, data of 8 bytes are taken in. When the memory data search circuit 35 takes in this data through the controller interface unit 33, the link information is first stored in the temporary register 43. At the start time of the lead scan, the table pointer P-FRA is stored into the temporary register 43. At the time when a first part table is read in, the value of the table pointer P-FRA is held as a previous link information in the temporary register 43, and the value of the table pointer P-FRA and the currently stored link information are held in the two-staged register structure. At this point in time, the temporary register 43 holds the value of the table pointer P-FRA as the search target part information LK R . From the output selection unit 40 is output the start address recorded in the part table therefor as the search target address AD R . The reference address AD ref (in this case, address A27) and the search target address AD R (start address of the part table) are compared with each other in the comparator 45. Here, if AD R > AD ref , the read-in part table is identified as a part table for a segment which is located behind the reference free area. On the other hand, if AD R < AD ref , the read-in part table is identified as a part table for a segment which is located in front of the reference free area. The comparator 46 compares the search address AD prev , in this case, the address A MAX which is the initial value at the initial stage, and the search target address AD R , the start address of the read-in part table. If AD R > AD prev , the read-in part table corresponds to a segment located behind the segment whose start address corresponds to the search address AD prev . On the other hand, if AD R < AD prev , the read-in part table corresponds to a segment located behind the segment whose start address corresponds to the search address AD prev . However, for those part tables which are read in at the time when the search address AD prev has not yet been renewed, the search address AD prev to be compared is set as an initial value A MAX , so that the relation of AD R < AD prev is necessarily satisfied. If AD R > AD ref in the comparison unit 45 (when the search address AD prev is the initial value A MAX , the result of AD R < AD prev is obtained in the comparator 46, the read-in part table is identified as a part table indicating a segment serving as a free area which is behind and relatively near to the reference free area, and the control logic 47 outputs the latch control signal to the near-by address register 42 and the link register 44 to set the address AD R as a new search address AD prev and to allow the link register 44 to latch the search target part information LK R latched in the temporary register 43 as the search part information LK prev . Since the search target part information LK R in the temporary register 43 is the link information (in this case, it may be the value of the table pointer P-FRA) in the part table which is previously read in, as describe above the search address AD prev in the near-by address register 42 is renewed and at the same time the position information of the part table in which the end address serving as the value of the renewed AD prev is recorded is held as the search part information LK prev in the link register 44. Through this operation, the start address of the segment which is behind the reference free area is held as the search address AD prev , and the position of the part table indicating the segment is indicated as the search link information LK prev . Subsequently, part tables linked to the part table are read in accordance with the lead scan, and the link information of the part table is taken into the temporary register 43. At this time, the search target part information LK R in the temporary register 43 is set to the previously taken-in link information, that is, the position of the currently stored part table on the U-TOC is indicated by the search target part information LK R . Next, the start address of the part table is output as the search target address AD R from the output selection unit 40. At this time, the search target address AD R and the reference address AD ref are compared with each other in the comparator 45, and the search target address AD R and the search address AD prev are compared with each other in the comparator 46. If the result is that AD R > AD ref AD R < AD prev , and the read-in part table becomes a part table for a segment which is located behind and nearer to the reference free area than a part table whose start address is held as the search address AD prev at the above time point. Accordingly, the control logic 47 controls the near-by address register 42 and the link register 44 to execute the latch operation, renew the search address AD prev to be the start address of the search part information LK prev , and renew to the link information indicating the position of the read-in part table as the search part information LK prev , that is, the value which is held as the search target part information LK R in the temporary register 43 at this time point. Subsequently, the linked part tables are successively read in. The comparison operation is executed every read-in operation in the comparator 45, 46 as described above, and if the result is that AD R > AD ref and AD R < AD prev , the search address AD prev of the near-by address register 42 and the search part information LK prev of the link register 44 are renewed. On the other hand, if the result that AD R > AD ref and AD R < AD prev is not obtained, the search address AD prev of the near-by address register 42 and the search part information LK prev of the link register 44 are not renewed, and the values at the previous renewing time are kept. Accordingly, when the above operation is carried out for all the part tables lead by the table pointer P-FRA through the lead scan in the memory data search circuit 35, the start address of the segment serving as the free area which is located behind and nearest to the reference free area is held as the search address AD prev , and the part table indicating the segment is held as the search part information LK prev at the time when the above operation is terminated. After the lead scan of the part tables from the table pointer P-FRA by the memory controller 12 is terminated, the processing of the system controller 11 goes to a step S205, and the search address AD prev and the search part information LK prev which are held in the memory data search circuit 35 are taken in. The search address AD prev is held as a near-by free area address N 1 , and the search part information LK prev is held as a near-by free area part information NL 1 . Subsequently, the system controller 11 sets the memory data search circuit 35 of the memory controller 12 again so that the address A MAX serving as an initial value is set as the search address AD prev to the near-by address register 42, and the search part information LK prev of the link register 44 is cleared (S206). After the system controller 11 carries out the above setting of the memory data search circuit 35 for the memory controller 12, the system controller 11 controls the memory controller 12 to successively execute the search operation of those part tables which are led by each of the table pointers P-TNO1 to P-TNO255 of the U-TOC held in the buffer RAM 13 (S208). That is, the memory controller 12 is controlled to execute the lead scan for the part tables for the segment (music data area) in which a music data is recorded, and the processing waits until the lead scan is terminated (S209). Through this lead scan, the segment serving as a music data area which is behind and nearest to the reference free area is searched in the memory data search circuit 35 of the memory controller 12. That is, the memory controller 33 successively generates addresses for part tables led by the table pointer P-TNO1 by the address counter 34, whereby the data of part tables for one or plural segments for the first musical piece are successively taken in through the RAM data interface unit 31. The data which is taken in from one part table comprises a start address of 3 bytes, an end address of 3 bytes, a track mode information of one byte and a link information of one byte, totally, 8 bytes. When the lead scan of the part tables for the first musical piece is terminated, the lead scan is successively carried out such that part tables led by the table pointer P-TNO2 for the second musical piece, and then part tables led by the table pointer P-TNO3 and subsequent part tables are carried out. Accordingly, the part tables for the segments in which all musical pieces are recorded are successively read out from the buffer RAM 13. When the memory data search circuit 35 takes in the data of these part tables through the controller interface unit 33, the comparison processing for the start address of each segment is carried out and the previous link information are held like the part tables for the free area as described above. If AD R < AD prev and AD R > AD ref in accordance with the comparison result of the comparators 45 and 46, the read-in part table is identified as a part table indicating a segment for a music data area which is located behind and relatively near to the reference free area, and the latch control signal is output from the control logic 47 to the near-by address register 42 and the link register 44, whereby the address AD R is set as a new search address AD prev and the search target part information LK R latched in the temporary register 43 is latched as the search part information LK prev in the link register 44. Next, the part tables are successively read in. Every time the read-in operation is carried out, the comparison operation of the comparators 45 and 46 is executed. If the result of AD R > AD ref is obtained and AD R < AD prev , the search address AD prev of the near-by address register 42 and the search part information LK prev of the link register 44 are renewed. On the other hand, if the result of AD R > AD ref and AD R < AD prev is not obtained, the search address AD prev of the near-by address register 42 and the search part information LK prev of the link register 44 are not renewed and the values of the previous renewing operation are kept without being renewed. The above operation is executed in the memory data search circuit 35 through the lead scan for all the part tables which are led by the table pointer P-TNO1 to P- TNO255. Of course, in this case, no part table exists for the table pointer of "00h" of P-TNO1 to P-TNO255, and thus the lead scan is not required. At the time when the above operation is terminated, the start address of the segment serving as a music data area which is behind and nearest to the reference free area is held, and the part table indicating the segment is held as the search part information LK prev . When the lead scan of the part tables from the table pointer P-TNO1 to P-TNO255 by the memory controller 12 is terminated, the processing of the system controller 11 goes to a step S209 of Fig. 15 to take in the search address AD prev and the search part information LK prev held in the memory data search circuit 35. Further, it holds the search address AD prev as the near-by music data area address N 2 and the search part information LK prev as the near-by music data area part information NL 2 . At this point in time, the system controller 11 compares the near-by free area address N 1 and the near-by music data area address N 2 (S210). Through this comparison, it is found out whether a free area or a music data area exists behind the reference free area. For example, when any music data area exists behind the reference free area as shown in Figs. 21 and 22, as shown in the figure, the near-by free area address N 1 corresponds to the address A 32 , and the near-by music data area address N 2 corresponds to the address A 30 , that is, N 1 < N 2 . (S210→S211) On the other hand, when any free area exists behind the reference free area as shown in Figs. 23 and 24, the near-by free area address N 1 corresponds to the address A 30 or A 28 , and the near-by music data area address N 2 corresponds to the address A 32 , that is, N 1 < N 2 . (S210→S211) If N 1 > N 2 at the step S210 and a music data area is judged to be located at the rear side, then the reference address N ref is subtracted from the near-by music data area address N 2 to thereby judge whether any trash area exists between the reference free area and the music data area behind the reference free area (S211). If the difference between the near-by music data area address N 2 and the reference address N ref corresponds to one sound group, then the reference free area is completely adjacent to the music data area behind the reference free area, and no trash area exists. That is, the state as shown in Fig. 22 is identified. In this case, no merge processing for the trash area is required, and thus the rear merge processing is terminated (S211 → YES). If the difference between the near-by music data area address N 2 and the reference address N ref corresponds to two more sound groups, then a trash area exists between the reference free area and the music data area behind the reference free area, and the state as shown in Fig. 21 is identified. In this case, the merge processing for the trash area is executed (from S211 to S212). That is, the end address of the reference free area as shown in Fig. 21 is renewed from the address A 27 to the address A 29 and held. This address A 29 is determined by calculation of the near-by music data area address N 2 - 1. (sound group) Through this operation, the system controller 11 is recognized to be in the state where the reference free area is completely adjacent to the music data area behind the reference free area and the trash area is extinguished. If at the step S210 N 1 < N 2 a free area is judged to be located at the rear side, the merge processing is executed without judging the presence or absence of the trash area (from S210 → S213). The merging process is explained below. The system controller 11 reads the address of the part table in accordance with the near-by free area information NL 1 . (S213). The system controller gets the end address of the part table which is indicated by the near-by free area part information NL 1 as the end address of the new free area (S214). The system controller 11 accesses the part table which is indicated by the nearby free area part information NL 1 as part of table P-Empty, referring to Fig. 7. Thus, by combining the reference free area and the free area at the rear side of the reference free area with each other, even if any trash area exists, the trash area is automatically extinguished. For example when the reference free area and the free area behind the reference free area are completed adjacent to each other and no trash area exists as shown in Fig. [13(a)?] , the address A 27 of the reference free area is identified as the end address A 31 of a free area behind the reference free area, and the addresses A 24 to A 31 are newly identified as the reference free area as shown in Fig. 24. In the above description, only the rear merge processing is described. Of course, when the reference free area is combined with a free area in front of the reference free area as shown in Figs. 18 and 19 in the front merge processing, the start address of the reference free area at this time is identified as the start address of the free area in front of the reference free area. After these merge processings, for the actual editing of the U-TOC, the reference free area identified in the above merge processings is indicated with being contained in the part table which has been provided in correspondence with the segment serving as a free area at a front or rear side. Even when any trash area exists between the reference free area and a free area behind the reference free area as shown in Fig. 23, the end address A 27 of the reference free area is likewise identified as the end address A 31 of the rear free area, and the addresses A 24 to A 31 are newly identified as the reference free area as shown in Fig. 23, whereby the trash area can be automatically extinguished. After the front merge processing and the rear merge processing as described above are terminated, the system controller 11 executes the editing operation of the U-TOC on the basis of the merge processing to rewrite the U-TOC in the buffer RAM 13. In Fig. 14, for example, the U-TOC of Fig. 4 is edited and rewritten as shown in Fig. 7. A predetermined time point, the edited U-TOC is supplied as recording data to the disc 1, and the U-TOC is rewritten on the disc 1. As described above, by carrying out the merge processing to edit the U-TOC, the trash area is extinguished, and the recordable user area on the disc 1 can be effectively used. As described above, the system controller 11 is not required to receive the data of part tables which are subjected to the lead scan and to carry out comparison processing of the neighboring segment. Accordingly, the time which is required for the communication of the lead scan data between the conventional system controller 11 and the conventional memory controller 12 is completely unrequired, so that the merge processing can be rapidly performed. For example, the U-TOC editing processing time which conventionally takes about two minutes can be shortened to about two seconds. Further, the system controller 11 supplies the search mode signal S SM to the output selection unit 40 of the memory data search circuit 35 to output the end address in the front merge processing and output the start address in the rear merge processing, whereby the end address is set as the search address in the front merge processing and the start address is set as the search address in the rear merge processing. Therefore, the search address can be used to judge the presence or absence of any trash area, and thus the efficiency of the processing can be improved. In the above embodiment, the front merge processing is executed first, however, the rear merge processing may be carried out first. Further, the front and rear merge processings may be simultaneously carried out to shorten the processing time more. In the case where the front and rear merge processing are simultaneously carried out, two units of memory data search circuits 36 for the front search and the rear search respectively must be provided in the memory controller 12. The output selection unit 40 and the control logic 47 in the memory data search circuit 35 supply the search mode signal S SM to perform a judgment setting on the operation in the front merge processing and the operation in the rear merge processing. The operation of the output selection unit 40 is controlled to output the end address in the merge processing and output the start address in the rear merge processing, thereby improving the efficiency of the processing. However, this is not necessarily required. The output selection unit 40 is controlled to output the end address in the front merge processing. However, it may output the start address. That is, the same result can be obtained even by carrying out the comparison using the start address if the processing is limited to the seeking of a segment in front of the reference free are and the judgment is made as to whether the segment is for a music data area or a free area. In this case, with respect to the judgment as to whether any trash area exists between the searched front segment and the reference free area, the system controller 11 takes in the search part information LK prev which is taken in as the near-by free area part information NL 1 or the near-by music data area part information NL 2 , and thus by reading out the part table indicated by the information, the end address of the front segment can be obtained. Accordingly, by comparing the reference address N ref and the end address of the front segment, it can be judged whether any trash area exists. For the same reason, the output selection unit 40 may output the end address, not the start address, in the rear merge processing. It is not necessarily required to carry out the operation of the output selection unit 40 in accordance with the search mode signal S SM in some processing modes. Likewise, the control logic may not be operated in accordance with the search mode signal S SM . The search of the front and rear segments as described above is realized by designing the control logic 47 so as to output the latch control at the time when the inequality of AD prev < AD R < AD ref (that is, the latch condition in the front merge processing) or AD prev > AD R > AD ref (that is, the latch condition in the rear merge processing) is satisfied, in the case where, in the near-by address register 42, A MIN is properly set as an initial value before the front merge processing is started, and A MAX is properly set as an initial value before the rear merge processing is started. In this embodiment, the position information of the part tables of the segments located adjacently at the front or rear side is obtained as the search part information LK prev from the link register 44. This is not necessarily required for the merge processing of the above embodiment. That is, the memory data search circuit 35 may not be provided with the temporary register 43 and the link register 44. However, in the actual merge processing (steps S112, S113, S212, S213) and the editing processing of the U-TOC, The position information of the part tables for the adjacent segments are detected and obtained by the memory data search circuit 35, and the processing can be effectively executed. The execution of the above merge processing is not limited to the time when the erasing is carried out. The above embodiment is described for the case where the memory control device and the memory data search circuit are applied to the recording and reproducing device for the magneto-optical disc 1. However, this invention is also applicable as a memory control device and memory data search circuit for a device exclusively used for recording, and for other equipments. As described above, by providing the memory data search circuit for executing the operation of judging the managing information corresponding to the segment which is in front of or behind the segment on the recording medium which serves as a reference for an editing operation through the search and comparing processing of the managing information (U-TOC) in the memory controller, the data to be searched (that is, data of part tables in the U-TOC) itself is not required to carry out the communication with the system controller, and the time for the data communication is not required in the editing processing. Therefore, the processing time can be greatly shortened. Further, the system controller requires no processing to search adjacent segments through the data comparison, so that the processing load of the system controller can be greatly reduced. Still further, the system controller supplies the search mode signal S SM to the output selection unit 40 in the memory data search circuit 35 so that the end address is output in the front merge processing and the start address is output in the rear merge processing, whereby finally the end address is set as the search address in the front merge processing and the start address is set as the search address in the rear merge processing. Accordingly, the search address can be directly used for the judgment of on the presence or absence of trash areas, and thus the efficiency of the processing can be improved. The system controller controls the memory data search circuit to execute the search operation as follows: in order to search the managing information corresponding to the segment located in front of the reference segment, the end address of each segment in the managing information is searched, while in order to search the managing information corresponding to the segment located behind the reference segment, the start address of each segment is searched. Accordingly, the search address can be directly used to judge the presence or absence of any trash area, so that the efficiency of the processing can be improved. Further, as described above, the memory data search circuit is equipped with the reference data register means, the output selecting means, the search data register means, the search target data position register means, the search data position register means, the first comparing means, the second comparing means, and the renewing control means, whereby the segment located at a front or rear side and the position of the part table of the segment can be accurately searched.

Claims: A method of editing management information on a disc-type recording medium which manages recorded and recordable segments to eliminate and to minimize wasted space and comprises part tables (Olh etc) corresponding to recorded or recordable segments and corresponding tables indicating a header part table, wherein each part table has a start address, end address, and link information for connecting each part table, comprising the steps of: setting (S101; S201) an address of a segment to be erased as a reference address (N ref, AD ref); scanning addresses of recordable segments in accordance with said link information and corresponding table indicating data; comparing said reference address and scanned addresses so as to search for the nearest recordable segment to said segment to be erased; storing the address of the nearest recordable segment; scanning addresses of recorded segments in accordance with said link information and corresponding table indicating data; comparing said reference address and scanned addresses so as to search for the nearest recorded segment to said segment to be erased; storing the address of the nearest recorded segment; comparing the address of said nearest recorded segment with the address of said nearest recordable segment; merge processing (S112, S113; S212, S213) in accordance with result of said comparison; editing said management information in accordance with said merge processing; and recording said management information on the recording medium. A method according to claim 1, wherein the address of a segment to be erased as a reference address indicates the start address. A method according to claim 11, wherein the address of a segment to be erased as a reference address indicates the end address. A method according to claim 2, wherein the scanned address indicates the start address. A method according to claim 2, wherein the scanned address indicates the end address. A method according to claim 3, wherein the scanned address indicates the start address. A method according to claim 3, wherein the scanned address indicates the end address. A method according to claim 1, comprising the steps of: storing link information indicating a part table corresponding to the nearest recorded segment; and storing link information indicating a part table corresponding to the nearest recordable segment. A method according to claim 2, comprising the steps of: comparing the difference between said reference address and said address of the nearest recorded segment and a predetermined value in the case where the address of the nearest recorded segment is greater than the address of the nearest recordable segment; and executing merge processing when the difference between the reference address and the address of said nearest recorded segment is not equal to the predetermined value. A method according to claim 5, comprising the steps of: comparing the difference between the reference address and the address of the nearest recorded segment and a predetermined value in the case where the address of the nearest recorded segment is greater than the address of the nearest recordable segment; and rewriting the start address corresponding to the segment to be erased to the value of the predetermined value added to the nearest recorded segment in the case where the difference between the reference address and the address of the nearest recorded segment is not equal to said predetermined value. A method according to claim 8, comprising the steps of: setting the start address of the part table corresponding to the segment to be erased as the address of the nearest recordable segment in the case where the address of the nearest recordable segment is greater than the address of the nearest recorded segment, and; entering the part table which is indicated by link information for indicating the segment corresponding to the nearest recordable segment which is an empty slot. A method according to claim 3, comprising the steps of: comparing the difference between the reference address and the address of the nearest recorded segment and a predetermined value in the case where the address of the nearest recordable segment is greater than the address of the nearest recorded segment; and executing merge processing in the case where the difference between the reference address and the address of the nearest recorded segment is not equal to said predetermined value. A method according to claim 6, comprising the steps of: comparing the difference between the reference address and the address of the nearest recorded segment and a predetermined value in the case where the address of the nearest recorded segment is greater than the address of the nearest recordable segment; and rewriting the start address corresponding to the segment to be erased with the value of the predetermined value added to the nearest recorded segment in the case where the difference between the reference address and the address of the nearest recorded segment is not equal to the predetermined value. A method according to claim 8, comprising the steps of: setting the end address of the part table corresponding to the segment to be erased as an end address which is indicated by stored link information indicating the part table corresponding to the nearest recordable segment in the case where the address of the nearest recorded segment is greater than the address of the nearest recordable segment; and entering in the part table, which is indicated by link information, the segment corresponding to the nearest recordable segment which is empty.

Inventors: MAEDA YASUAKI C O INTELLECTUAL, MAEDA, YASUAKI, C/O INTELLECTUAL PROPERTY DIVISION
Applicants: SONY CORP, SONY CORPORATION
Application year: 1994
Main classification: G11B27
IPC codes: G11B27, G06F3, G11B11