This commit is contained in:
mzxrules
2020-03-19 18:06:41 -04:00
parent dd4f67c3f5
commit 8063249af4
3 changed files with 100 additions and 113 deletions
+4 -1
View File
@@ -1,7 +1,10 @@
#ifndef _REGS_H_
#define _REGS_H_
#define BASE_REG(n, r) gGameInfo->data[n * 96 + r]
#define REG_GROUPS 29 //number of REG groups, i.e. REG, SREG, OREG, etc.
#define REG_PER_GROUP 96
#define BASE_REG(n, r) gGameInfo->data[n * REG_PER_GROUP + r]
#define REG(r) BASE_REG(0, r)
#define SREG(r) BASE_REG(1, r)