Mon 16 Mar 11:09:06 CET 2026
This commit is contained in:
parent
7b00a51fba
commit
c44ab0298e
21
src/reg.c
Normal file
21
src/reg.c
Normal 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;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user