[#]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
=> View nthpongwars tag | View nabupc tag | View z88dk tag | View sdcc tag This content has been proxied by September (3851b).Proxy Information
text/gemini