dasm09: add package install, man page, mod docs
authorBrett Gordon <beretta42@gmail.com>
Sat, 6 May 2017 02:00:31 +0000 (22:00 -0400)
committerBrett Gordon <beretta42@gmail.com>
Sat, 6 May 2017 02:00:31 +0000 (22:00 -0400)
Applications/dasm09/README
Applications/dasm09/dasm09.1 [new file with mode: 0644]
Applications/dasm09/fuzix-dasm09.pkg [new file with mode: 0644]

index fdb069a..ded1dd2 100644 (file)
@@ -1,3 +1,12 @@
+Lightly modified to compile and run under Fuzix by Brett M. Gordon 2017:
+
+- original loads entire image to a buffer and dasms from there.  I
+redefined the low-level macro to call read functions that read
+directly from a FILE stream.  A 32K userspace would have a hard time
+with large images using the original method!
+
+
+Original README:
 
 dasm09: M6809/H6309/OS9 disassembler V0.1 © 2000 Arto Salmi
 Usage: dasm09 [options] <filename>
diff --git a/Applications/dasm09/dasm09.1 b/Applications/dasm09/dasm09.1
new file mode 100644 (file)
index 0000000..d1ea94b
--- /dev/null
@@ -0,0 +1,48 @@
+.TH man 1 "dasm09 M6809/H6309 Disassembler" "FUZIX" \" -*- nroff -*-
+.SH NAME
+dasm09 \- Disassemble 6809/6309 images
+.SH SYNOPSIS
+.B dasm09
+[options] <filename>
+.SH DESCRIPTION
+.B dasm09
+disassembles a 6809/6309 machine code image. 
+.SS OPTIONS
+.TP
+.I "-begin"
+start disassembly address
+.TP
+.I "-end"
+end disassembly address
+.TP
+.I "-offset"
+address to load program
+.TP
+.I "-out"
+output file
+.TP
+.I "-noaddr"
+no address dump
+.TP
+.I "-nohex"
+no hex dump
+.TP
+.I "-os0"
+use os9 psuedo-opcode for swi2
+.TP 
+All address values are in hexadecimal.
+.SH EXAMPLES
+.IP
+dasm09 -out cat.asm -offset 100 /bin/cat
+.SH EXIT STATUS
+.TP
+.B 0
+Completed successfully.
+.TP
+.B 1
+An error occured.
+.SH BUGS
+os9 call table is not tested.
+.SH AUTHORS
+Arto Salmi
+
diff --git a/Applications/dasm09/fuzix-dasm09.pkg b/Applications/dasm09/fuzix-dasm09.pkg
new file mode 100644 (file)
index 0000000..28c54b0
--- /dev/null
@@ -0,0 +1,5 @@
+package  dasm09
+if-file  dasm09
+
+f 0755 /usr/bin/dasm09         dasm09
+f 0644 /usr/man/man1/dasm09.1  dasm09.1
\ No newline at end of file