Abstract: An NC program output method is disclosed which includes: storing a starting character string (SP.sub.1), which indicates the beginning of an inputted NC program, in a starting character string input memory (M.sub.1); enabling setting of a separate starting character string (SP.sub.2); and selectively outputting, before NC data (D.sub.1) which results from editing processing, the stored starting character string (SP.sub.1) or the separately set starting character string (SP.sub.2). If where the starting character string (SP.sub.2) is not set, then the starting character string (SP.sub.1) is outputted automatically.
Abstract: A data processing apparatus includes a control storage, a first storage, a second storage, an address storage, an identifying section, an executing section, a saving section, a holding section, a selecting section, and an exception handler. A first type instruction realized by a microprogram stored in the control storage and a second type instruction realized by an instruction program constituted by first type instructions are identified. When this identification result indicates a second type instruction, the data processing apparatus causes the second type instruction to be executed by first type instructions constituting instruction program for the second type instruction. When an exception occurs during the execution of this instruction program, the data processing apparatus can process the exception by using the address of the second type instruction saved in the saving section.