aboutsummaryrefslogtreecommitdiff
path: root/emulators/sim6811
diff options
context:
space:
mode:
authorEric L. Hernes <erich@FreeBSD.org>1995-10-03 02:43:51 +0000
committerEric L. Hernes <erich@FreeBSD.org>1995-10-03 02:43:51 +0000
commit8128d115f0d4e9164864aea4a4308df135f0cc58 (patch)
tree3295df7aa8c8fd02996849d63b4209a780be1214 /emulators/sim6811
parent929931d3f41395e0d6bcbe5f67b3fbf9215568d4 (diff)
downloadports-8128d115f0d4e9164864aea4a4308df135f0cc58.tar.gz
ports-8128d115f0d4e9164864aea4a4308df135f0cc58.zip
added sim6811
Reviewed by: asami
Notes
Notes: svn path=/head/; revision=2219
Diffstat (limited to 'emulators/sim6811')
-rw-r--r--emulators/sim6811/Makefile19
-rw-r--r--emulators/sim6811/distinfo1
-rw-r--r--emulators/sim6811/files/patch-aa43
-rw-r--r--emulators/sim6811/files/patch-ab76
-rw-r--r--emulators/sim6811/pkg-comment2
-rw-r--r--emulators/sim6811/pkg-descr14
-rw-r--r--emulators/sim6811/pkg-plist2
7 files changed, 157 insertions, 0 deletions
diff --git a/emulators/sim6811/Makefile b/emulators/sim6811/Makefile
new file mode 100644
index 000000000000..07641791e21a
--- /dev/null
+++ b/emulators/sim6811/Makefile
@@ -0,0 +1,19 @@
+# New ports collection makefile for: 6811sim
+# Version required: 1.6
+# Date created: Thu Sep 14 11:10:01 CDT 1995
+# Whom: erich@rrnet.com
+#
+# $Id$
+#
+
+DISTNAME= sim
+PKGNAME= sim6811-1.6
+CATEGORIES+= emulation
+MASTER_SITES= ftp://crl.nmsu.edu/pub/non-lexical/6811/
+EXTRACT_SUFX= .tar.Z
+
+MAINTAINER= erich@FreeBSD.ORG
+
+NO_WRKSUBDIR= yes
+
+.include <bsd.port.mk>
diff --git a/emulators/sim6811/distinfo b/emulators/sim6811/distinfo
new file mode 100644
index 000000000000..77f55efca568
--- /dev/null
+++ b/emulators/sim6811/distinfo
@@ -0,0 +1 @@
+MD5 (sim.tar.Z) = 519c27cfc4c9f5602c2b568297b1ee7a
diff --git a/emulators/sim6811/files/patch-aa b/emulators/sim6811/files/patch-aa
new file mode 100644
index 000000000000..9688e296324c
--- /dev/null
+++ b/emulators/sim6811/files/patch-aa
@@ -0,0 +1,43 @@
+*** Makefile~ Wed Sep 6 10:15:18 1995
+--- Makefile Wed Sep 6 11:00:51 1995
+***************
+*** 1,15 ****
+! BINDIR = /usr/unsupported/bin
+ CC = gcc
+! CFLAGS = -g -Wall -DINLINE=inline
+! CFLAGS += -O2 -DINLINE=inline
+! sim: main.o sim.o dis.o
+! $(CC) $(CFLAGS) main.o sim.o dis.o -o sim $(LDLIBS)
+ sim.o: sim.h
+ main.o: sim.h
+ dis.o: sim.h
+
+! install: sim
+! cp sim $(BINDIR)/sim6811
+
+ sharfile: sim.h Makefile sim.c main.c dis.c
+ shar -C sim.h Makefile sim.c main.c dis.c >sharfile
+--- 1,23 ----
+! BINDIR = ${PREFIX}/bin
+! MANDIR= ${PREFIX}/man/man1
+!
+ CC = gcc
+! CFLAGS = -O2 -DINLINE=inline
+!
+! all: sim6811
+!
+! sim6811: main.o sim.o dis.o
+! $(CC) $(CFLAGS) main.o sim.o dis.o -o $@ $(LDLIBS)
+!
+ sim.o: sim.h
+ main.o: sim.h
+ dis.o: sim.h
+
+! install: sim6811
+! cp sim6811 $(BINDIR)/sim6811
+! strip ${BINDIR}/sim6811
+! cp sim6811.1 ${MANDIR}
+! gzip -9nf ${MANDIR}/sim6811.1
+
+ sharfile: sim.h Makefile sim.c main.c dis.c
+ shar -C sim.h Makefile sim.c main.c dis.c >sharfile
diff --git a/emulators/sim6811/files/patch-ab b/emulators/sim6811/files/patch-ab
new file mode 100644
index 000000000000..58b932f662ee
--- /dev/null
+++ b/emulators/sim6811/files/patch-ab
@@ -0,0 +1,76 @@
+*** sim6811.1~ Wed Sep 6 10:58:03 1995
+--- sim6811.1 Wed Sep 6 10:59:11 1995
+***************
+*** 0 ****
+--- 1,71 ----
++ .Dd June 5, 1993
++ .Dt sim6811 1
++ .Os BSD 4
++ .Sh NAME
++ .Nm sim6811
++ .Nd very simple and crude simulator for the 6811
++ .Sh SYNOPSIS
++ .Nm sim6811
++ .Ar s19-file
++ .Sh DESCRIPTION
++ .Ar s19-file
++ is a Motorola s19 assembler output file
++
++ some instructions aren't there yet (notably converning multiplication
++ and interrupts) and the interface only allows stepping. this should
++ be easily rectifiable, however, and the simple structure should make
++ grafting on a graphical interface quite simple.
++
++ to run the simulator, just provide the name of an object file on the
++ command line. the object file must be in s19 format, and must include
++ a reset vector in order to tell the simulator where to start
++ execution. simulation proceeds one instruction at a time, with a
++ register and page zero memory dump being performed at each step.
++
++ several simple commands are supported, but additional commands to
++ modify memory, cause interrupts and simulate the special registers
++ would all be nice, and relatively easy to add.
++
++ .Sh COMMANDS
++
++ The current
++ .Nm sim6811
++ command set includes
++
++ .Bl -tag -width Ds
++
++ .Nm l [address [n]]
++ .br
++ .ti 8
++ disassemble n instructions starting at address
++
++ .Nm g [address [n]]
++ .br
++ .ti 8
++ go starting at address for n steps.
++
++ .Nm s [n]
++ .br
++ .ti 8
++ step n times (n=1 default)
++
++ .Nm b [address[cnt]]
++ .br
++ .ti 8
++ set a breakpoint, which will stop cnt times
++
++ .Nm t [address[cnt]]
++ .br
++ .ti 8
++ set a temporary breakpoint.
++
++ .Nm <empty-line>
++ .br
++ .ti 8
++ step once
++
++ .Sh HISTORY
++ .Nm sim6811
++ was written by Ted Dunning <ted@nmsu.edu>. This manual page was created out of
++ various C-sources by Eric L. Hernes <erich@rrnet.com>. Some example sources
++ and s19 files can be found in ftp://crl.nmsu.edu/pub/non-lexical/6811
diff --git a/emulators/sim6811/pkg-comment b/emulators/sim6811/pkg-comment
new file mode 100644
index 000000000000..f1c60cbffa61
--- /dev/null
+++ b/emulators/sim6811/pkg-comment
@@ -0,0 +1,2 @@
+This is sim6811 -- a Motorola 6811 simulator.
+
diff --git a/emulators/sim6811/pkg-descr b/emulators/sim6811/pkg-descr
new file mode 100644
index 000000000000..c07f5a24ab7b
--- /dev/null
+++ b/emulators/sim6811/pkg-descr
@@ -0,0 +1,14 @@
+from main.c:
+
+ very simple and crude simulator for the 6811
+
+ some instructions aren't there yet (notably converning multiplication
+ and interrupts) and the interface only allows stepping. this should
+ be easily rectifiable, however, and the simple structure should make
+ grafting on a graphical interface quite simple.
+
+I am calling this version 1.6, to reflect the revision number of
+sim.h, which appears to be common to all (three) source files.
+
+eric.
+erich@rrnet.com
diff --git a/emulators/sim6811/pkg-plist b/emulators/sim6811/pkg-plist
new file mode 100644
index 000000000000..d865d972e6d7
--- /dev/null
+++ b/emulators/sim6811/pkg-plist
@@ -0,0 +1,2 @@
+bin/sim6811
+man/man1/sim6811.1.gz