From 9b599b4ebbc6ed055b63dd764c28182873275444 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Kn=C3=BCttel?= Date: Sat, 27 Oct 2018 12:14:30 +0200 Subject: [PATCH] fixed some typos in the core_methods --- interpreter/core_methods.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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); }