mirror of
https://github.com/Michaelangel007/apple2_prodos_utils.git
synced 2024-12-26 14:29:15 +00:00
Rename to 'prodosfs' so we can extract PRODOS system file
This commit is contained in:
parent
3710b9c9db
commit
ecb99a1ae0
32
Makefile
32
Makefile
@ -1,15 +1,19 @@
|
||||
SOURCES := $(wildcard *.cpp) $(wildcard *.h)
|
||||
TARGETS = prodos
|
||||
TARGETS = prodosfs
|
||||
CFLAGS = -O2
|
||||
|
||||
all:$(TARGETS)
|
||||
|
||||
.PHONY: install
|
||||
install:
|
||||
cp prodosfs ~/bin/
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
@echo Sources: $(SOURCES)
|
||||
$(RM) $(TARGETS)
|
||||
|
||||
prodos: $(SOURCES)
|
||||
prodosfs: $(SOURCES)
|
||||
g++ $(CFLAGS) prodos.cpp -o $@
|
||||
|
||||
# ----------
|
||||
@ -20,19 +24,19 @@ test140: prodos
|
||||
echo -n "ABCDEFGHIJKLMNOPabcdefghijklmnop" > 32.txt
|
||||
cat 32.txt 32.txt 32.txt 32.txt > 128.txt
|
||||
cat 128.txt 128.txt 128.txt 128.txt 32.txt > text.bin
|
||||
prodos test.dsk init -size=140 /TEST
|
||||
prodos test.dsk dir
|
||||
prodos test.dsk cp foo1.txt foo2.txt foo3.txt text.bin /
|
||||
prodos test.dsk dir
|
||||
prodosfs test.dsk init -size=140 /TEST
|
||||
prodosfs test.dsk dir
|
||||
prodosfs test.dsk cp foo1.txt foo2.txt foo3.txt text.bin /
|
||||
prodosfs test.dsk dir
|
||||
|
||||
test800: prodos
|
||||
echo "A" > foo1.txt
|
||||
echo "B" > foo2.txt
|
||||
echo "C" > foo3.txt
|
||||
prodos test.dsk init -size=800 /TEST
|
||||
prodos test.dsk dir
|
||||
prodos test.dsk cp foo1.txt foo2.txt foo3.txt /
|
||||
prodos test.dsk dir
|
||||
prodosfs test.dsk init -size=800 /TEST
|
||||
prodosfs test.dsk dir
|
||||
prodosfs test.dsk cp foo1.txt foo2.txt foo3.txt /
|
||||
prodosfs test.dsk dir
|
||||
|
||||
test32: prodos
|
||||
echo "A" > foo1.txt
|
||||
@ -41,8 +45,8 @@ test32: prodos
|
||||
echo -n "ABCDEFGHIJKLMNOPabcdefghijklmnop" > 32.txt
|
||||
cat 32.txt 32.txt 32.txt 32.txt > 128.txt
|
||||
cat 128.txt 128.txt 128.txt 128.txt 32.txt > text.txt
|
||||
prodos test.dsk init -size=32 /TEST
|
||||
prodos test.dsk dir
|
||||
prodos test.dsk cp foo1.txt foo2.txt foo3.txt text.txt /
|
||||
prodos test.dsk dir
|
||||
prodosfs test.dsk init -size=32 /TEST
|
||||
prodosfs test.dsk dir
|
||||
prodosfs test.dsk cp foo1.txt foo2.txt foo3.txt text.txt /
|
||||
prodosfs test.dsk dir
|
||||
|
||||
|
30
prodos.cpp
30
prodos.cpp
@ -175,24 +175,24 @@ int usage()
|
||||
"\n"
|
||||
"Three different disk sizes are accepted for init\n"
|
||||
"\n"
|
||||
" prodos test.dsk init -size=140 # 5 1/4\" (140 KB)\n"
|
||||
" prodos test.dsk init -size=800 # 3 1/2\" (800 KB)\n"
|
||||
" prodos test.dsk init -size=32 #HardDisk ( 32 MB)\n"
|
||||
" prodosfs test.dsk init -size=140 # 5 1/4\" (140 KB)\n"
|
||||
" prodosfs test.dsk init -size=800 # 3 1/2\" (800 KB)\n"
|
||||
" prodosfs test.dsk init -size=32 #HardDisk ( 32 MB)\n"
|
||||
"\n"
|
||||
"Examples:\n"
|
||||
"\n"
|
||||
" prodos test.dsk ls\n"
|
||||
" prodos test.dsk cat\n"
|
||||
" prodos test.dsk cp foo1 foo2 /\n"
|
||||
" prodos test.dsk mkdir bar\n"
|
||||
" prodos test.dsk cp foo2 /bar\n"
|
||||
" prodos test.dsk get /PRODOS\n"
|
||||
" prodos test.dsk rm /bar/foo2\n"
|
||||
" prodos test.dsk rmdir /bar\n"
|
||||
" prodos test.dsk init /TEST\n"
|
||||
" prodos b140.dsk init -size=140 /BLANK140\n"
|
||||
" prodos b800.dsk init -size=800 /BLANK800\n"
|
||||
" prodos b032.dsk init -size=32 /BLANK32\n"
|
||||
" prodosfs test.dsk ls\n"
|
||||
" prodosfs test.dsk cat\n"
|
||||
" prodosfs test.dsk cp foo1 foo2 /\n"
|
||||
" prodosfs test.dsk mkdir bar\n"
|
||||
" prodosfs test.dsk cp foo2 /bar\n"
|
||||
" prodosfs test.dsk get /PRODOS\n"
|
||||
" prodosfs test.dsk rm /bar/foo2\n"
|
||||
" prodosfs test.dsk rmdir /bar\n"
|
||||
" prodosfs test.dsk init /TEST\n"
|
||||
" prodosfs b140.dsk init -size=140 /BLANK140\n"
|
||||
" prodosfs b800.dsk init -size=800 /BLANK800\n"
|
||||
" prodosfs b032.dsk init -size=32 /BLANK32\n"
|
||||
"\n"
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user