Rangi

Results 643 comments of Rangi

Base the implementation for `expr * 0` and `expr & 0` on #976.

This is not possible in general for non-floating sections, as AntonioND mentioned. People sometimes do write code that uses raw hex values for banks or addresses when they know what...

@aaaaaa123456789 True, an `assert` would be ideal there (it falls under https://github.com/pret/pokecrystal/issues/706), but the code is valid without one, and a "smart linker" should not break it. It seems to...

https://github.com/gbdev/rgbds/issues/67#issuecomment-966679756 discusses some possible syntaxes and issues with native arrays. If we ended up not adding them, another approach to reading binary file content would be to just read it...

C++ `std::string` does support storing NUL bytes, so presumably if we used C++ std lib algorithms instead of C's string.h functions, they would work as expected for "binary strings". ```c++...

Currently pokegold uses a custom tool to measure the size of a 5x5, 6x6, or 7x7 PNG image and encode that as $55, $66, or $77. This could replace its...

`READFILE` could also take optional *start* and *length* arguments like `INCBIN`. This would be more efficient for use cases that only need part of a file, and would let pokecrystal...

(That would not preclude adding simpler wide charmap support from #97, such as `charmap "ě", $01, $1b` or `charmap "ě", $011b, 2`.)

There will be a user-defined alternative eventually, assuming varargs, recursion, overloading, and the ternary operator are all implemented. Until then, you still have to do `if X < 42 \...