diff --git a/interpreter/core_methods.c b/interpreter/core_methods.c index 448fc77..89f169c 100644 --- a/interpreter/core_methods.c +++ b/interpreter/core_methods.c @@ -259,7 +259,7 @@ char bci_cm_eq(uint8_t small_arg, machine_state_t state) // $0 -> $pc; 0 -> $st_reg char bci_cm_jmp(uint8_t small_arg, machine_state_t state) { - BCI_CORE_REGISTER_CHECK(small_arg) + BCI_CORE_REGISTER_CHECK(small_arg); uint16_t arg = state->data_reg[arg]; state->status_reg = 0; @@ -272,7 +272,7 @@ char bci_cm_jmp(uint8_t small_arg, machine_state_t state) char bci_cm_cjmp(uint8_t small_arg, machine_state_t state) { uint16_t arg; - BCI_CORE_REGISTER_CHECK(small_arg) + BCI_CORE_REGISTER_CHECK(small_arg); arg = state->data_reg[arg]; if(state->status_reg) @@ -289,7 +289,7 @@ char bci_cm_cjmp(uint8_t small_arg, machine_state_t state) char bci_cm_call(uint8_t small_arg, machine_state_t state) { uint16_t arg; - BCI_CORE_REGISTER_CHECK(small_arg) + BCI_CORE_REGISTER_CHECK(small_arg); arg = state->data_reg[arg]; char res = bci_stack_t_push(&(state->stack), state->program_counter); @@ -305,6 +305,7 @@ char bci_cm_call(uint8_t small_arg, machine_state_t state) char bci_cm_ccall(uint8_t small_arg, machine_state_t state) { uint16_t arg; + char res; BCI_CORE_REGISTER_CHECK(small_arg); arg = state->data_reg[small_arg]; @@ -360,7 +361,7 @@ char bci_cm_not(uint8_t small_arg, machine_state_t state) } else { - status->status_reg = 1; + state->status_reg = 1; } return machine_state_t_default_afterexec(state, 0); }