Peter Maydell <[email protected]> writes: > I'm not sure what we should do with EOF, but presumably > we should handle it in some way.
There's no correct answer here, which is why the current implementation
just ignores it. Here are a couple of options:
1. Just return whatever getchar() provides; if it returns EOF, we'll
pass that on to the application. Semihost-aware applications may
learn about this 'special' value.
2. Return some ASCII control code (0x04?) in an attempt to tell the
application what has happened.
3. Block forever. This would at least keep the application from
spinning.
--
-keith
signature.asc
Description: PGP signature
