Toot

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 | View the thread | More toots from AGMS00@ruby.social

Mentions

Tags

=> View nthpongwars tag | View nabupc tag | View z88dk tag | View sdcc tag

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113868365274875460
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
242.345199 milliseconds
Gemini-to-HTML Time
0.510152 milliseconds

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