Add "print types" to bracketed symbols

Should partially cover #178 and close #270.
This allows printing numbers in different bases and without the dollar prefix
This is especially useful in macros because the dollar isnt a valid character
for symbol names, requiring heavy `STRSUB` usage.
This commit is contained in:
ISSOtm
2019-08-28 03:04:19 +02:00
parent e33e6e2413
commit 64752da42d
4 changed files with 70 additions and 8 deletions

View File

@@ -39,6 +39,7 @@ extern struct sSymbol *tHashedSymbols[HASHSIZE];
extern struct sSymbol *pPCSymbol;
extern bool oDontExpandStrings;
size_t symvaluetostring(char *dest, size_t maxLength, char *sym);
size_t symvaluetostring(char *dest, size_t maxLength, char *sym,
const char *mode);
#endif /* RGBDS_ASM_ASM_H */