Rev 3403 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3403 | Rev 4341 | ||
---|---|---|---|
Line 43... | Line 43... | ||
43 | 43 | ||
44 | static parea_t msim_parea; |
44 | static parea_t msim_parea; |
45 | static chardev_t console; |
45 | static chardev_t console; |
46 | static irq_t msim_irq; |
46 | static irq_t msim_irq; |
47 | 47 | ||
48 | static void msim_write(chardev_t *dev, const char ch); |
48 | static void msim_write(chardev_t *dev, const char ch, bool silent); |
49 | static void msim_enable(chardev_t *dev); |
49 | static void msim_enable(chardev_t *dev); |
50 | static void msim_disable(chardev_t *dev); |
50 | static void msim_disable(chardev_t *dev); |
51 | static char msim_do_read(chardev_t *dev); |
51 | static char msim_do_read(chardev_t *dev); |
52 | 52 | ||
53 | static chardev_operations_t msim_ops = { |
53 | static chardev_operations_t msim_ops = { |
Line 56... | Line 56... | ||
56 | .write = msim_write, |
56 | .write = msim_write, |
57 | .read = msim_do_read, |
57 | .read = msim_do_read, |
58 | }; |
58 | }; |
59 | 59 | ||
60 | /** Putchar that works with MSIM & gxemul */ |
60 | /** Putchar that works with MSIM & gxemul */ |
61 | void msim_write(chardev_t *dev, const char ch) |
61 | void msim_write(chardev_t *dev, const char ch, bool silent) |
62 | { |
62 | { |
- | 63 | if (!silent) |
|
63 | *((char *) MSIM_VIDEORAM) = ch; |
64 | *((char *) MSIM_VIDEORAM) = ch; |
64 | } |
65 | } |
65 | 66 | ||
66 | /* Called from getc(). */ |
67 | /* Called from getc(). */ |
67 | void msim_enable(chardev_t *dev) |
68 | void msim_enable(chardev_t *dev) |