diff code_part1/OSTC_code_c_part2/p2_deco.c @ 513:c9f19a546e64

BUGFIX MISSING movlb for gaslist (simulator).
author JeanDo
date Sun, 04 Dec 2011 17:46:08 +0100
parents e7893664bd29
children 3e9904d3c040
line wrap: on
line diff
--- a/code_part1/OSTC_code_c_part2/p2_deco.c	Sun Dec 04 17:45:51 2011 +0100
+++ b/code_part1/OSTC_code_c_part2/p2_deco.c	Sun Dec 04 17:46:08 2011 +0100
@@ -1024,13 +1024,13 @@
 //////////////////////////////////////////////////////////////////////////////
 // Find current gas in the list (if any).
 // 
-// Input:  char_I_current_gas.
+// Input:  char_I_current_gas = 1..6
 //
-// Output: sim_gas_last_depth, temp_depth_limit.
+// Output: sim_gas_last_depth = 0..5, temp_depth_limit.
 //
 static void gas_switch_find_current(void)
 {
-    assert( 0 <= char_I_current_gas && char_I_current_gas <= (NUM_GAS+1) );
+    assert( 0 < char_I_current_gas && char_I_current_gas <= (NUM_GAS+1) );
 
     if( char_I_current_gas <= NUM_GAS )                 // Gas1..Gas5
     {