+ if(drec->is_tape_inserted()) {
+ return drec->get_message();
+ } else {
+ return NULL;
+ }
+}
+
+void VM::push_play(int drv)
+{
+ if(drec->is_tape_inserted()) {
+ drec->set_ff_rew(0);
+ drec->set_remote(true);
+ }
+}
+
+void VM::push_stop(int drv)
+{
+ if(drec->is_tape_inserted()) {
+ drec->set_remote(false);
+ }
+}
+
+void VM::push_fast_forward(int drv)
+{
+ if(drec->is_tape_inserted()) {
+ drec->set_ff_rew(1);
+ drec->set_remote(true);
+ }
+}
+
+void VM::push_fast_rewind(int drv)
+{
+ if(drec->is_tape_inserted()) {
+ drec->set_ff_rew(-1);
+ drec->set_remote(true);
+ }