Rangi
Rangi
Generating code with macros, like [pokecrystal16](https://github.com/aaaaaa123456789/pokecrystal16/blob/expand-move-ID/engine/16/macros.asm), can require different optimizations depending on where labels end up being placed. (Note the various `db`s in that file.) However, `if` needs to be...
1. Have a flag to omit outputting individual symbol names. This information is already available in the .sym file, and leaving it out would make it easier to see the...
- `Foo * 0` is always `0` - `Foo & 0` is always `0` - `Foo - Foo` is always `0` - `Foo ^ Foo` is always `0` These could...
Currently for `-r N` the value `N` is the recursion depth at which it fails. I think specifying the maximum valid recursion depth would be more intuitive. So currently `-r...
These would be useful for both sections and labels. For a section named `"S"`, `ALIGNOF("S")` and `OFFSETOF("S")` would just return the values specified by its `ALIGN`ment, or 0s if it's...
This would let you do `SIZEOF(__SECTION__)` and `STARTOF(__SECTION__)`, and get the offset within the current section with `@ - STARTOF(__SECTION__)`, without having to repeat a literal section name.
The built-in fixed-point literals are always Q16.16, but in practice people may want Q24.8 (aka Q8.8 when masked to the low 16 bits), or Q8.24 for high-precision math, or something...
As recently discussed in `#tools`, floating-point math would sometimes be convenient for its greater range even though Q16.16 fixed point is already built-in. The fixed-point range is around +/- 65,536,...
This is a feature of various other assemblers that would be convenient for rgbasm. Using parameter names instead of index numbers is more self-documenting, and could allow for default argument...
`INCLUDE` and `INCBIN` can include a file's contents directly as assembly code or data, but there are times when it would be nice to access a file's contents arbitrarily. For...