comparison target-utils/simtest/poll.c @ 457:d96ea6ae6aa5

simtest: setup implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 09 Feb 2019 17:15:57 +0000
parents daaab2701761
children
comparison
equal deleted inserted replaced
456:3884d823b36e 457:d96ea6ae6aa5
10 void 10 void
11 poll_sim_rx() 11 poll_sim_rx()
12 { 12 {
13 u32 drx; 13 u32 drx;
14 14
15 if (SIMREGS.stat & 3) 15 if (SIMREGS.stat & SIM_STAT_FEMPTY)
16 return; 16 return;
17 drx = SIMREGS.drx & 0xFF; 17 drx = SIMREGS.drx & 0xFF;
18 printf("%02X ", drx); 18 printf("%02X ", drx);
19 } 19 }
20 20