rust-console / gba

A crate that helps you make GBA games
https://docs.rs/gba
Apache License 2.0
658 stars 50 forks source link

investigate what registers are available for inline-asm trashing #151

Closed Lokathor closed 2 years ago

Lokathor commented 3 years ago

https://github.com/rust-console/gba/pull/149#issuecomment-846665263

Lokathor commented 2 years ago

The situation has improved so that you can generally use more registers since this issue opened, but there's no way to fully prevent llvm from reserving some of them. the compiler will tell you if you use a disallowed register, so it's not dangerous, just annoying