Allow the bit/res/set bit index to be determined at link time (#1654)

This increments the object file revision number from 11 to 12
since it adds a new `RPN_BIT_INDEX` command.
This commit is contained in:
Rangi
2025-02-12 17:14:10 +01:00
committed by GitHub
parent 48412e9c56
commit 2aef09c8d9
12 changed files with 97 additions and 19 deletions

View File

@@ -51,6 +51,7 @@ struct Expression {
bool makeCheckHRAM();
void makeCheckRST();
void makeCheckBitIndex(uint8_t mask);
void checkNBit(uint8_t n) const;

View File

@@ -9,7 +9,7 @@
#include "helpers.hpp" // assume
#define RGBDS_OBJECT_VERSION_STRING "RGB9"
#define RGBDS_OBJECT_REV 11U
#define RGBDS_OBJECT_REV 12U
enum AssertionType { ASSERT_WARN, ASSERT_ERROR, ASSERT_FATAL };
@@ -52,6 +52,7 @@ enum RPNCommand {
RPN_HRAM = 0x60,
RPN_RST = 0x61,
RPN_BIT_INDEX = 0x62,
RPN_HIGH = 0x70,
RPN_LOW = 0x71,