Open abaresk opened 5 months ago
Is there actually any homebrew out there that uses this over nocash prints?
This is more helpful for rom-hacking and decompilation, where you'd have the ability to insert arbitrary print statements.
Additionally, as far as I'm aware, Desmume does not support the nocash debug registers. It would be nice to have a printing mechanism that works across both emulators.
Just following up, are there any concerns with merging in this feature?
Sorry to keep bugging, is it okay to merge this?
I would suggest that if this feature will be added it should be an opt-in feature to avoid clashing with possible other uses of this swi. E.g. someone can map vectors to itcm and have their own swi handler. It's rare, but possible (for example in gbarunner3). Personally I think the existing way to print with no$ IO registers is less intrusive in that regard.
If the game executes
svc 0xFC
, the contents of the null-terminated string addressed in registerr0
will be printed to the terminal.For consistency, this is the same mechanism that is used in Desmume (source).