Turns out that the library code that converts 16 bit integers to ASCII calls some utoa assembler code which uses lots of registers, including IX and the alternate register set too. But IX isn’t saved by the caller, and is your C program’s frame pointer, so you may get really odd bugs after using printf %d or %u.DJ Sures wrote: Mon May 22, 2023 5:58 am Do you notice printf with z88 sometimes has strange output? I find that happens but I haven’t raised an issue with their forum yet. I haven’t done enough tests to understand why it’s happening.
Blog post about it: http://web.ncf.ca/au829/WeekendReports/ ... 2025.01.21