Import devel/zmac, a Z-80 macro cross assembler.

ok benoit@

zmac is a Z-80 macro cross-assembler. It has all the features you'd
expect. It assembles the specified input file (with a '.z' extension if
there is no pre-existing extension and the file as given doesn't exist)
and produces program output in many different formats. It also produces
a nicely-formatted listing of the machine code and cycle counts
alongside the source in a ".lst" file.

Undocumented Z-80 instructions are supported as well as 8080 code.

zmac strives to be a powerful assembler with expressions familiar to C
programmers while providing good backward compatibility with original
assemblers such as Edtasm, MRAS and Macro-80.
This commit is contained in:
bcallah 2020-07-03 15:24:22 +00:00
parent 73e8da8ffa
commit 79ce6121bc
4 changed files with 43 additions and 0 deletions

27
devel/zmac/Makefile Normal file
View File

@ -0,0 +1,27 @@
# $OpenBSD: Makefile,v 1.1.1.1 2020/07/03 15:24:22 bcallah Exp $
COMMENT = Z-80 macro cross assembler
DISTNAME = zmac-20200607
CATEGORIES = devel
HOMEPAGE = http://48k.ca/zmac.html
MAINTAINER = Brian Callahan <bcallah@openbsd.org>
# Public Domain
PERMIT_PACKAGE = Yes
WANTLIB += ${COMPILER_LIBCXX} c m
MASTER_SITES = https://mirrors.nycbug.org/pub/distfiles/
COMPILER = base-clang ports-gcc
ALL_TARGET = zmac
NO_TEST = Yes
# No install routine.
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/zmac ${PREFIX}/bin
.include <bsd.port.mk>

2
devel/zmac/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (zmac-20200607.tar.gz) = AXl7cpZZEvrOH5MO7jfVCyB/PjIOMkaqx1LjLk47GXk=
SIZE (zmac-20200607.tar.gz) = 177599

12
devel/zmac/pkg/DESCR Normal file
View File

@ -0,0 +1,12 @@
zmac is a Z-80 macro cross-assembler. It has all the features you'd
expect. It assembles the specified input file (with a '.z' extension if
there is no pre-existing extension and the file as given doesn't exist)
and produces program output in many different formats. It also produces
a nicely-formatted listing of the machine code and cycle counts
alongside the source in a ".lst" file.
Undocumented Z-80 instructions are supported as well as 8080 code.
zmac strives to be a powerful assembler with expressions familiar to C
programmers while providing good backward compatibility with original
assemblers such as Edtasm, MRAS and Macro-80.

2
devel/zmac/pkg/PLIST Normal file
View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2020/07/03 15:24:22 bcallah Exp $
@bin bin/zmac