From: Joshua Wise Date: Thu, 17 Apr 2008 04:02:12 +0000 (-0400) Subject: More files needed X-Git-Url: http://git.joshuawise.com/fpgaboy.git/commitdiff_plain/5c8e4561941ca8897d67b7261b3264199182002b?hp=922655ddc3b83b82d6b07d7332db901c9d1c5558 More files needed --- diff --git a/mashrom.c b/mashrom.c new file mode 100644 index 0000000..5c252fe --- /dev/null +++ b/mashrom.c @@ -0,0 +1,14 @@ +void main(int argc, char** argv) +{ + int n = 1024; + int i; + if (argc >= 2) + n = atoi(argv[1]); + for (i = 0; i < n; i++) + { + unsigned char c; + if (read(0, &c, 1) < 1) + c = 0; + printf("%02x\n", c); + } +} \ No newline at end of file