Sophie Kirschner
Sophie Kirschner
(I was able to prevent this error from appearing by adding `"zig.fmt.on_save": false` in my package settings) (I also had just installed zig on this system for the first time....
Adding partly for my own reference as I continue to puzzle through this: The inline assembly resembles that of what is documented here as the official crt0.s (startup routine provided...
@dotcarmen I think this is unrelated, but I could just be missing context? Currently with this project, all Zig code is compiled to 16-bit Thumb instructions, since this is preferable...
I don't think that's what Thumb-2 is? From what I'm reading, Thumb-2 seems to just refer to the addition of more 32-bit instructions besides `bl` and `blx` to the (fundamentally...
Ah, here's something more simple and definitive: The GBA ISA is ARMv4T. Thumb-2 was not introduced until ARMv6T2. https://felixjones.github.io/gba-tutorial/01_introduction/architecture.html https://s-o-c.org/differences-between-thumb-and-thumb2-instruction-sets/
Thank you for sharing this @braheezy! I think you'd be welcome to submit a PR, though I think ideally the specific parts needed to link with the assembly entry point...
... I couldn't help myself, I was too curious, and did it anyway. Thank you very much @braheezy for figuring a fix out - I took what you put together...
> so I can use this library with the Zig build system instead of cloning it locally. I'm pretty new to Zig myself, and I don't actually know the difference....
@braheezy Oh I don't mean using zigimg as a runtime dependency, I mean using it as a build-time dependency. I believe it's entirely possible to have Zig grab and manage...
> Hard agree on making bits per pixel the semantic meaning for that enum, I think that's much better. Since we're hard agreed on this one and since this PR...