fixed some typos in the core_methods
This commit is contained in:
parent
d1101ccdfe
commit
1c0feb04d6
|
@ -259,7 +259,7 @@ char bci_cm_eq(uint8_t small_arg, machine_state_t state)
|
||||||
// $0 -> $pc; 0 -> $st_reg
|
// $0 -> $pc; 0 -> $st_reg
|
||||||
char bci_cm_jmp(uint8_t small_arg, machine_state_t state)
|
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];
|
uint16_t arg = state->data_reg[arg];
|
||||||
|
|
||||||
state->status_reg = 0;
|
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)
|
char bci_cm_cjmp(uint8_t small_arg, machine_state_t state)
|
||||||
{
|
{
|
||||||
uint16_t arg;
|
uint16_t arg;
|
||||||
BCI_CORE_REGISTER_CHECK(small_arg)
|
BCI_CORE_REGISTER_CHECK(small_arg);
|
||||||
arg = state->data_reg[arg];
|
arg = state->data_reg[arg];
|
||||||
|
|
||||||
if(state->status_reg)
|
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)
|
char bci_cm_call(uint8_t small_arg, machine_state_t state)
|
||||||
{
|
{
|
||||||
uint16_t arg;
|
uint16_t arg;
|
||||||
BCI_CORE_REGISTER_CHECK(small_arg)
|
BCI_CORE_REGISTER_CHECK(small_arg);
|
||||||
arg = state->data_reg[arg];
|
arg = state->data_reg[arg];
|
||||||
|
|
||||||
char res = bci_stack_t_push(&(state->stack), state->program_counter);
|
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)
|
char bci_cm_ccall(uint8_t small_arg, machine_state_t state)
|
||||||
{
|
{
|
||||||
uint16_t arg;
|
uint16_t arg;
|
||||||
|
char res;
|
||||||
BCI_CORE_REGISTER_CHECK(small_arg);
|
BCI_CORE_REGISTER_CHECK(small_arg);
|
||||||
arg = state->data_reg[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
|
else
|
||||||
{
|
{
|
||||||
status->status_reg = 1;
|
state->status_reg = 1;
|
||||||
}
|
}
|
||||||
return machine_state_t_default_afterexec(state, 0);
|
return machine_state_t_default_afterexec(state, 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user