You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The spirit and letter of the C standard state that the effects of
printing printable characters in the execution character set (ASCII)
should produce the corresponding character on the display. Since the
Commander X16 has full ASCII support, we need to switch to ISO mode if a
character could ever be output to the screen. This is similar to the
shifted PETSCII switch now done for other Commodore family targets.
7714ed4 - Translate \b to CURSOR LEFT on Commodore
Backspace is specified to move the cursor to the previous position on
the current line, and that's precisely what CURSOR LEFT performs.
90c3977 - Split getchar into __getchar and __to_ascii.
getchar is now a library function, and the target-specific hooks are __getchar to get a target character, and __to_ascii to convert a sequence of target characters into an ASCII character.
90c3977 - Correct target to ASCII mappings for getchar
atari8, commodore, and cx16 now have analogous mappings for getchar and putchar.
All remaining <stdio.h> functions have been implemented. They only support the files stdin, stdout and stderr, and there's presently no way to redirect them or open other files. This implementation I'm calling the "trivial" <stdio.h>; we'll also have a "full" implementation that gets linked in if a file might possibly be opened or redirected.
The scanf doesn't yet support floating point numbers.
Bug fixes
#314 - Fix realloc returning memory regions that overlap with previous allocations