Commit 75d97b45 authored by jgh's avatar jgh
Browse files

dxa65 is a disassembler for MOS 6502 and compatible CPUs

NMOS 6502s (such as 6502A, 6504, 6507, 6510, 7501, 8500, 8501, 8502 ...)
CMOS 6502s (65C02 and Rockwell R65C02)

WWW: http://www.floodgap.com/retrotech/xa#dxa

PR:		ports/179030
Submitted by:	uffe@uffe.org
parent e7200e6d
......@@ -373,6 +373,7 @@
SUBDIR += dulwich
SUBDIR += duplo
SUBDIR += dwarfdump
SUBDIR += dxa65
SUBDIR += dyncall
SUBDIR += e00compr
SUBDIR += e2fsprogs-libss
......
# Created by: Uffe Jakobsen <uffe@uffe.org>
# $FreeBSD$
PORTNAME= dxa
PORTVERSION= 0.1.3
CATEGORIES= devel
MASTER_SITES= http://www.floodgap.com/retrotech/xa/dists/
PKGNAMESUFFIX= 65
MAINTAINER= uffe@uffe.org
COMMENT= Disassembler for MOS 6502 and compatible CPUs
OPTIONS_DEFINE= DOCS
USES= gmake
MAN1= dxa.1
MLINKS= dxa.1 dxa65.1
PLIST_FILES= bin/dxa65
PORTDOCS= INSTALL
.include <bsd.port.options.mk>
post-patch-script:
@${REINPLACE_CMD} 's|CC = |CC ?= |g' ${WRKSRC}/Makefile
@${REINPLACE_CMD} 's|CFLAGS = |CFLAGS ?= |g' ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/dxa ${PREFIX}/bin/dxa65
${INSTALL_MAN} ${WRKSRC}/dxa.1 ${MAN1PREFIX}/man/man1
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/INSTALL ${DOCSDIR}
.endif
.include <bsd.port.mk>
SHA256 (dxa-0.1.3.tar.gz) = 1e7adb7f0306397f45ed068203d36ae6c0886c698899ba89080cbf161a31c72e
SIZE (dxa-0.1.3.tar.gz) = 23595
--- label.c.orig 2006-11-01 18:23:28.000000000 +0200
+++ label.c 2010-08-31 21:45:43.000000000 +0300
@@ -40,7 +40,7 @@
#include "opcodes.h"
label *labeltable;
-char defaultlabel[5];
+char defaultlabel[6];
unsigned numLabels = 0;
#ifndef __STDC__
@@ -55,7 +55,7 @@
label *entry;
char *buffer;
- if (!((buffer = malloc (strlen (name)))))
+ if (!((buffer = malloc (strlen (name) + 1))))
return;
entry = numLabels ?
dxa65 is a disassembler for MOS 6502 and compatible CPUs
NMOS 6502s (such as 6502A, 6504, 6507, 6510, 7501, 8500, 8501, 8502 ...)
CMOS 6502s (65C02 and Rockwell R65C02)
WWW: http://www.floodgap.com/retrotech/xa#dxa
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment