A non-transitory computer-readable storage medium for storing a control program which causes an information processor to perform processing, the information processor including a control device, an interface device, and an arithmetic processing device, the processing comprising:
- causing the arithmetic processing device to individually execute a plurality of divided first control commands as one processing unit in a predetermined execution order, via the interface device;
- detecting an interrupt issued from the arithmetic processing device or the interface device;
- generating a second control command for identifying an interrupt factor of the detected interrupt;
- preferentially arranging the generated second control command over the unexecuted first control commands to change the execution order;
- and
- executing the first control commands and the second control command in the changed execution order.