Today I wrote a code in c with putchar so I can translate it to assembly, but the last putchar I call doesnt print, if I add a newline after it works.
else if(R5 == 0x2B) // PLUS
{
.....
if(R8 >= 10 || R8 == 0)
{
R5 = 0;
zhnr: if(R8 >= 10)
{
R8 = R8 - 10;
R5++;
goto zhnr;
}
putchar('0'+ R5);
}
putchar('0'+ R8); // THIS IS THE LAST PUTCHAR WHICH DOESNT PRINT
// IF I ADD HERE: putchar('\n'); It works
}