1
0
Fork 0
mirror of https://github.com/pnx/m16vm synced 2026-06-16 03:44:55 +02:00

src/cpu: add the define "CPU_NUM_REGS"

This commit is contained in:
Henrik Hautakoski 2018-10-28 14:21:00 +01:00
parent 900e1d87c4
commit dca453457d
No known key found for this signature in database
GPG key ID: 839F3A7EAFAEAFAA
2 changed files with 3 additions and 1 deletions

View file

@ -32,7 +32,7 @@
#include "instr.h"
// Registers r0, r15
int16_t reg[16] = { 0 };
int16_t reg[CPU_NUM_REGS] = { 0 };
/* Program */
unsigned char *instr_mem = NULL;