The FT32 simulator has character output, of course. This patch
adds character input, which lets the simulator run interactive
FT32 applications, e.g. language interpreters.
+2015-09-22 James Bowman <james.bowman@ftdichip.com>
+
+ * ft32/interp.c (cpu_mem_read): Call getchar when ea is 0x10000.
+
2015-06-23 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
/* Simulate some IO devices */
switch (ea)
{
+ case 0x10000:
+ return getchar ();
case 0x1fff4:
/* Read the simulator cycle timer. */
return cpu->state.cycles / 100;