BartmanAbyss / vscode-amiga-debug

One-stop Visual Studio Code Extension to compile, debug and profile Amiga C/C++ programs compiled by the bundled gcc 12.2 with the bundled WinUAE/FS-UAE.
GNU General Public License v3.0
303 stars 38 forks source link

formatted text in debug_text #202

Open AdamKeher opened 1 year ago

AdamKeher commented 1 year ago

I'm not sure where to post questions like this.

Given there is no stdio / sprintf how are you supposed to format text for use in debug_text?

I have been using RawDoFmt on the Amiga side which has a significant performance cost. I feel like I must be missing something obvious.

As a side note, I wrote this using your framework / tools and it was really enjoyable, thanks! Not sure if you would want to add it to your "used in these productions" section.

https://www.pouet.net/prod.php?which=93079

BartmanAbyss commented 1 year ago

Hi, thanks for using the extension. I have added your production to the README. As for the text formatting, you're right, we have just implemented a very simple sprintf function ourselves, there also should be plenty on the internet (for embedded devices), so I guess that's the easiest way to go about it. I'm not sure if it's possible to do that on the emulator side. I'll have to think some more about it.