changeset 27:fcfbaf8dbfb4 src

Insert some assert commands to hopefully catch a DVD which will give us information on what to do if these values are != 0.
author jcdutton
date Tue, 23 Apr 2002 13:18:31 +0000
parents 794d2e16a4d4
children da60d6379f95
files vm.c
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/vm.c	Tue Apr 23 12:55:40 2002 +0000
+++ b/vm.c	Tue Apr 23 13:18:31 2002 +0000
@@ -263,6 +263,7 @@
   assert(link_values.command == PlayThis);
   (vm->state).blockN = link_values.data1;
   fprintf(stderr, "vm_start: blockN set to 0x%x\n", (vm->state).blockN);
+  assert( (vm->state).blockN == 0 );
 
 
   return 0; /* ?? */
@@ -310,6 +311,7 @@
   assert(link_values.command == PlayThis);
   (vm->state).blockN = link_values.data1;
   fprintf(stderr, "vm_start_title: blockN set to 0x%x\n", (vm->state).blockN);
+  assert( (vm->state).blockN == 0 );
 
   return 0; /* ?? */
 }
@@ -325,6 +327,7 @@
   assert(link_values.command == PlayThis);
   (vm->state).blockN = link_values.data1;
   fprintf(stderr, "vm_jump_prog: blockN set to 0x%x\n", (vm->state).blockN);
+  assert( (vm->state).blockN == 0 );
   
   return 0; /* ?? */
 }
@@ -338,6 +341,7 @@
     assert(link_values.command == PlayThis);
     (vm->state).blockN = link_values.data1;
     fprintf(stderr, "vm_eval_cmd: blockN set to 0x%x\n", (vm->state).blockN);
+    assert( (vm->state).blockN == 0 );
     return 1; /*  Something changed, Jump */
   } else {
     return 0; /*  It updated some state thats all... */
@@ -352,6 +356,7 @@
   assert(link_values.command == PlayThis);
   (vm->state).blockN = link_values.data1;
   fprintf(stderr, "vm_get_next_cell: blockN set to 0x%x\n", (vm->state).blockN);
+  assert( (vm->state).blockN == 0 );
   
   return 0; /*  ?? */
 }
@@ -364,6 +369,7 @@
   assert(link_values.command == PlayThis);
   (vm->state).blockN = link_values.data1;
   fprintf(stderr, "vm_top_pg: blockN set to 0x%x\n", (vm->state).blockN);
+  assert( (vm->state).blockN == 0 );
   
   return 1; /*  Jump */
 }
@@ -380,6 +386,7 @@
   assert(link_values.command == PlayThis);
   (vm->state).blockN = link_values.data1;
   fprintf(stderr, "vm_go_up: blockN set to 0x%x\n", (vm->state).blockN);
+  assert( (vm->state).blockN == 0 );
   
   return 1; /*  Jump */
 }
@@ -450,6 +457,7 @@
       assert(link_values.command == PlayThis);
       (vm->state).blockN = link_values.data1;
       fprintf(stderr, "vm_menu_call: blockN set to 0x%x\n", (vm->state).blockN);
+      assert( (vm->state).blockN == 0 );
       return 1; /*  Jump */
     } else {
       (vm->state).domain = old_domain;
@@ -493,6 +501,7 @@
     assert(link_values.command == PlayThis);
     (vm->state).blockN = link_values.data1;
     fprintf(stderr, "vm_resume1: blockN set to 0x%x\n", (vm->state).blockN);
+    assert( (vm->state).blockN == 0 );
   } else { 
     (vm->state).cellN = (vm->state).rsm_cellN;
     (vm->state).blockN = (vm->state).rsm_blockN;
@@ -1618,6 +1627,9 @@
 
 /*
  * $Log$
+ * Revision 1.15  2002/04/23 13:18:31  jcdutton
+ * Insert some assert commands to hopefully catch a DVD which will give us information on what to do if these values are != 0.
+ *
  * Revision 1.14  2002/04/23 12:34:39  f1rmb
  * Why rewrite vm function, use it instead (this remark is for me, of course ;-) ).
  * Comment unused var, shut compiler warnings.