Fix func_decl_0: correctly set interpreter's opcode counter.

This commit is contained in:
Ruben Ayrapetyan
2014-08-07 19:35:11 +04:00
parent 99c15ef802
commit cc4d55803c
3 changed files with 14 additions and 2 deletions
+9
View File
@@ -205,3 +205,12 @@ get_number_by_idx(T_IDX idx) /**< literal id */
return num;
} /* get_number_by_idx */
/**
* Get specified opcode from the program.
*/
OPCODE
read_opcode(opcode_counter_t counter) /**< opcode counter */
{
return __program[ counter ];
} /* read_opcode */