Ancestors

Written by AGMS on 2025-01-21 at 21:02

[#]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

Toot

Written by AGMS on 2025-01-22 at 01:11

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

=> View attached media

=> More informations about this toot | More toots from AGMS00@ruby.social

Descendants

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113869345040750789
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
273.192989 milliseconds
Gemini-to-HTML Time
0.473422 milliseconds

This content has been proxied by September (3851b).