git.joshuawise.com
/
fpgaboy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
922655d
)
More files needed
author
Joshua Wise
<joshua@nyus.joshuawise.com>
Thu, 17 Apr 2008 04:02:12 +0000
(
00:02
-0400)
committer
Joshua Wise
<joshua@nyus.joshuawise.com>
Thu, 17 Apr 2008 04:02:12 +0000
(
00:02
-0400)
mashrom.c
[new file with mode: 0644]
patch
|
blob
diff --git a/mashrom.c
b/mashrom.c
new file mode 100644
(file)
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
This page took
0.02207 seconds
and
4
git commands to generate.