Rangi

Results 643 comments of Rangi

Allowing only binary input for `-p @` and only textual for `-p ` sounds fine to me. So yeah, you'd use shell expansions to pass some `pal.txt`.

Taking an input tileset to generate a tilemap definitely sounds useful. Taking a tilemap as input is also potentially useful: there are a few places where pret uses gfx.c's `--preserve`...

Here are a couple examples: - pokered's [gfx/intro/gengar.png](https://github.com/pret/pokered/blob/master/gfx/intro/gengar.png) goes with three tilemaps in [gfx/intro](https://github.com/pret/pokered/tree/master/gfx/intro); however, the 2bpp needs to include two duplicate tiles. So we just don't remove any duplicates...

PR #877 partially addressed this, so assembly continues even after a section has become too large, but it does not update the linker, nor change the error messages to report...

I'd thought it would be feasible to change the output functions so, instead of writing to an object file, they just increment a counter of bytes past the maximum, which...

Hm, so `rgbasm` and `rgblink` would both need flags for this.

[Sjasm](http://www.xl2s.tk/sjasmman11.html#s1) has something similar: "text macros with arguments". (Although these are expanded as statements, not expressions, so more like macros with named parameters.)

Some implementations for common math functions that aren't built into rgbasm: ``` def abs(x) = x < 0 ? -x : x def abs(x) = x * (1 - 2...

Functions could allow specifying their arguments by name, in case the given order doesn't match the declaration order. ``` def coord(x, y) = x * SCREEN_WIDTH + y ld hl,...

I see what you mean, assuming `Foo` can be literally any expression, not just a symbol. In that case only `expr * 0` and `expr & 0` would be feasible.