mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-26 04:52:08 +00:00
Implement multi-value charmaps (#1429)
This commit is contained in:
@@ -14,9 +14,9 @@ void charmap_New(std::string const &name, std::string const *baseName);
|
||||
void charmap_Set(std::string const &name);
|
||||
void charmap_Push();
|
||||
void charmap_Pop();
|
||||
void charmap_Add(std::string const &mapping, uint8_t value);
|
||||
void charmap_Add(std::string const &mapping, std::vector<int32_t> &&value);
|
||||
bool charmap_HasChar(std::string const &input);
|
||||
std::vector<uint8_t> charmap_Convert(std::string const &input);
|
||||
size_t charmap_ConvertNext(std::string_view &input, std::vector<uint8_t> *output);
|
||||
std::vector<int32_t> charmap_Convert(std::string const &input);
|
||||
size_t charmap_ConvertNext(std::string_view &input, std::vector<int32_t> *output);
|
||||
|
||||
#endif // RGBDS_ASM_CHARMAP_HPP
|
||||
|
||||
@@ -63,4 +63,6 @@ private:
|
||||
uint8_t *reserveSpace(uint32_t size, uint32_t patchSize);
|
||||
};
|
||||
|
||||
bool checkNBit(int32_t v, uint8_t n, char const *name);
|
||||
|
||||
#endif // RGBDS_ASM_RPN_HPP
|
||||
|
||||
@@ -84,9 +84,9 @@ void sect_EndUnion();
|
||||
void sect_CheckUnionClosed();
|
||||
|
||||
void sect_AbsByte(uint8_t b);
|
||||
void sect_AbsByteString(std::vector<uint8_t> const &s);
|
||||
void sect_AbsWordString(std::vector<uint8_t> const &s);
|
||||
void sect_AbsLongString(std::vector<uint8_t> const &s);
|
||||
void sect_AbsByteString(std::vector<int32_t> const &s);
|
||||
void sect_AbsWordString(std::vector<int32_t> const &s);
|
||||
void sect_AbsLongString(std::vector<int32_t> const &s);
|
||||
void sect_Skip(uint32_t skip, bool ds);
|
||||
void sect_RelByte(Expression &expr, uint32_t pcShift);
|
||||
void sect_RelBytes(uint32_t n, std::vector<Expression> &exprs);
|
||||
|
||||
Reference in New Issue
Block a user