A recording device which is connectable to a host computer and performs recording on the basis of received data including commands, received from the host computer, the recording device comprising: a receiving buffer configured to store therein the received data received from the host computer; a control section including: a command detection section configured to read the received data stored in the receiving buffer while scanning the receiving buffer with a first read pointer to detect the commands included in the received data; a command execution section configured to process the commands detected by the command detection section in a stored order of the commands in the receiving buffer; and an immediate processing command detection section configured to read the received data stored in the receiving buffer while scanning the receiving buffer with a second read pointer which is provided separately from the first read pointer to detect an immediate processing command included in the received data, wherein the command execution section is configured to preferentially process the immediate processing command detected by the immediate processing command detection section regardless of the stored order of the commands in the receiving buffer, characterized in that the control section is configured to notify an operation state thereof when the operation state is changed from an online state to an offline state, the online state being a state in which a communication with the host computer and the recording can be performed, the offline state being a state in which the recording device is logically disconnected from the host computer, and the command execution section is configured to process the immediate processing command even when the control section is in the offline state. a receiving buffer configured to store therein the received data received from the host computer; a control section including: a command detection section configured to read the received data stored in the receiving buffer while scanning the receiving buffer with a first read pointer to detect the commands included in the received data; a command execution section configured to process the commands detected by the command detection section in a stored order of the commands in the receiving buffer; and an immediate processing command detection section configured to read the received data stored in the receiving buffer while scanning the receiving buffer with a second read pointer which is provided separately from the first read pointer to detect an immediate processing command included in the received data, a command detection section configured to read the received data stored in the receiving buffer while scanning the receiving buffer with a first read pointer to detect the commands included in the received data; a command execution section configured to process the commands detected by the command detection section in a stored order of the commands in the receiving buffer; and an immediate processing command detection section configured to read the received data stored in the receiving buffer while scanning the receiving buffer with a second read pointer which is provided separately from the first read pointer to detect an immediate processing command included in the received data, wherein the command execution section is configured to preferentially process the immediate processing command detected by the immediate processing command detection section regardless of the stored order of the commands in the receiving buffer, characterized in that the control section is configured to notify an operation state thereof when the operation state is changed from an online state to an offline state, the online state being a state in which a communication with the host computer and the recording can be performed, the offline state being a state in which the recording device is logically disconnected from the host computer, and the command execution section is configured to process the immediate processing command even when the control section is in the offline state.