[#]NthPongWars continues on the #NabuPC. Today's head banging brought to you by #Z88DK / #SDCC compiler system for the Z80, where itoa() indirectly causes a crash or mysterious glitches as local variables suddenly change on their own.
Turns out the underlying utoa() assembler code uses more than the usual registers, including ix and the alternate set. And when compiling for speed, ix is the stack frame pointer! Hilarity ensues when you use a local variable pointer to write to memory :-)
=> More informations about this toot | More toots from AGMS00@ruby.social
After adapting someone else's utoa(), doing the score display was relatively easy. #NthPongWars is coming along. Next I need to write code for joystick inputs, and AI players.
Long version story on the blog at https://web.ncf.ca/au829/WeekendReports/20240207/NthPongWarsBlog.html#2025.01.21
=> More informations about this toot | More toots from AGMS00@ruby.social
text/gemini
This content has been proxied by September (3851b).