-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify RGBDS-structs using RGBDS 0.5.1 features
- DEF allows variable assignments to be indented - FOR loops are shorter than REPT with an explicit variable - BREAK allows early exit from loops, and can avoid macro recursion - {Interpolation} outside of string literals avoids temporary EQUS - REDEF simplifies updating EQUS without having to PURGE a temporary - DS with a sequence of bytes helps initialize multi-byte fields - STRRPL replaces the strreplace macro - Multi-arg STRCAT makes it easier to wrap long strings across lines - STRSUB without a length argument reads to the end of a string - \<ARG_NUM> makes SHIFTing unnecessary
- Loading branch information
Showing
3 changed files
with
223 additions
and
287 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.