Invaders Progress

The author of CPM Tetris and Snake.
User avatar
AGMS
Posts: 24
Joined: Tue Feb 20, 2024 9:56 pm

Re: Invaders Progress

Post by AGMS »

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.
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.

Blog post about it: http://web.ncf.ca/au829/WeekendReports/ ... 2025.01.21
Post Reply