Mon 16 Mar 11:09:06 CET 2026

This commit is contained in:
sbosse 2026-03-16 11:10:53 +01:00
parent 7b00a51fba
commit c44ab0298e

21
src/reg.c Normal file
View File

@ -0,0 +1,21 @@
#include "config.h"
#include "types.h"
#include "error.h"
#include "tokens.h"
#include "ops.h"
#include "mem.h"
#include "var.h"
#include "stack.h"
#include "reg.h"
#include "vm.h"
reg_t * RegAllocate() {
reg_t * r = (reg_t *)MEMALLOC(sizeof(reg_t));
return r;
}
void RegInit(reg_t *R) {
MEMSET(R,0,sizeof(reg_t));
R->error = EOK;
R->state = PIDLE;
R->steps = 1;
}