Newer
Older
emul / emul_reg.c
@TakayunDev TakayunDev on 25 May 2016 231 bytes bug fix
#include "emul_reg.h"

int reg[REG_SIZE];

void emul_reg_init() {
    reg[Szero] = 0;
    reg[Spc] = 0;
}

int emul_reg_get(int r) {
    return reg[r];
}

void emul_reg_set(int r, int value) {
    reg[r] = value;
}