]> Joshua Wise's Git repositories - fpgaboy.git/blame - mashrom.c
Add some verilator and isim compatibility
[fpgaboy.git] / mashrom.c
CommitLineData
e7fb589a 1int main(int argc, char** argv)
5c8e4561
JW
2{
3 int n = 1024;
4 int i;
5 if (argc >= 2)
6 n = atoi(argv[1]);
7 for (i = 0; i < n; i++)
8 {
9 unsigned char c;
10 if (read(0, &c, 1) < 1)
11 c = 0;
12 printf("%02x\n", c);
13 }
e7fb589a 14 return 0;
5c8e4561 15}
This page took 0.029151 seconds and 4 git commands to generate.