5. Init

<<funcdefs>>=
void bitlang_init(bitlang *vm);
<<funcs>>=
void bitlang_init(bitlang *vm)
{
    int i;

    for (i = 0; i < 8; i++) {
        vm->stk[i] = 0;
    }

    vm->stkpos = -1;

    for (i = 0; i < 8; i++) {
        vm->reg[i] = 0;
    }

    vm->err = 0;
}



prev | home | next