comparison 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
comparison
equal deleted inserted replaced
512:e7893664bd29 513:c9f19a546e64
1022 1022
1023 1023
1024 ////////////////////////////////////////////////////////////////////////////// 1024 //////////////////////////////////////////////////////////////////////////////
1025 // Find current gas in the list (if any). 1025 // Find current gas in the list (if any).
1026 // 1026 //
1027 // Input: char_I_current_gas. 1027 // Input: char_I_current_gas = 1..6
1028 // 1028 //
1029 // Output: sim_gas_last_depth, temp_depth_limit. 1029 // Output: sim_gas_last_depth = 0..5, temp_depth_limit.
1030 // 1030 //
1031 static void gas_switch_find_current(void) 1031 static void gas_switch_find_current(void)
1032 { 1032 {
1033 assert( 0 <= char_I_current_gas && char_I_current_gas <= (NUM_GAS+1) ); 1033 assert( 0 < char_I_current_gas && char_I_current_gas <= (NUM_GAS+1) );
1034 1034
1035 if( char_I_current_gas <= NUM_GAS ) // Gas1..Gas5 1035 if( char_I_current_gas <= NUM_GAS ) // Gas1..Gas5
1036 { 1036 {
1037 sim_gas_last_used = char_I_current_gas; 1037 sim_gas_last_used = char_I_current_gas;
1038 1038