I wrote a version of od.

This commit is contained in:
Warren Toomey
2016-03-23 11:14:01 +10:00
parent d14e82b229
commit 42c7a240ed
3 changed files with 115 additions and 2 deletions
+5 -2
View File
@@ -141,11 +141,11 @@ $(BINDIR)/altmkdir: $(ALTSRC)/wktmkdir.s
# The commands that did not come from the scans
others: dirs $(BINDIR)/sh $(BINDIR)/wktcat $(BINDIR)/wktcp $(BINDIR)/date \
$(BINDIR)/ln $(BINDIR)/ls $(BINDIR)/mv $(BINDIR)/stat
$(BINDIR)/ln $(BINDIR)/ls $(BINDIR)/mv $(BINDIR)/stat $(BINDIR)/od
# Alternative other commands: no dd, but . and ..
altothers: dirs $(BINDIR)/sh $(BINDIR)/wktcat $(BINDIR)/wktcp $(BINDIR)/date \
$(BINDIR)/ln $(BINDIR)/altls $(BINDIR)/mv $(BINDIR)/stat
$(BINDIR)/ln $(BINDIR)/altls $(BINDIR)/mv $(BINDIR)/stat $(BINDIR)/od
$(BINDIR)/sh: $(OTHERSRC)/pbsh.s
@@ -175,6 +175,9 @@ $(BINDIR)/mv: $(OTHERSRC)/wktmv.s
$(BINDIR)/stat: $(OTHERSRC)/wktstat.s
$(AS) $(ASARGS) -o $(BINDIR)/stat $(OTHERSRC)/wktstat.s
$(BINDIR)/od: $(OTHERSRC)/wktod.s
$(AS) $(ASARGS) -o $(BINDIR)/od $(OTHERSRC)/wktod.s
tests:
mkdir -p $(TESTDIR)
$(AS) $(ASARGS) -o $(TESTDIR)/decimal_out $(TESTSRC)/decimal_out.s
+1
View File
@@ -33,6 +33,7 @@ dd drwr- -1 4
init frwr- -1 bin/init
ln frwr- -1 bin/ln
ls frwr- -1 bin/ls
od frwr- -1 bin/od
mv frwr- -1 bin/mv
password frw-- -1 fs/password
sh frwr- -1 bin/sh