diff options
author | B. Watson <urchlay@slackware.uk> | 2024-04-27 02:43:50 -0400 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2024-04-27 02:43:50 -0400 |
commit | 8fdeb2dfc85b7b3be7a952ca71e3e742c2588ef7 (patch) | |
tree | 8ae5e7dd5bf2ede0d56e308a9bfcc12dbd1f85f0 | |
parent | eb5931167b60e44a8bdbcaf2e4b59e8112ac02b1 (diff) | |
download | bw-atari8-tools-8fdeb2dfc85b7b3be7a952ca71e3e742c2588ef7.tar.gz |
f2toxex: remove, rethought this and decided xexcat will do this job.
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | a8eol.1 | 1 | ||||
-rw-r--r-- | a8utf8.1 | 1 | ||||
-rw-r--r-- | atr2xfd.1 | 1 | ||||
-rw-r--r-- | atrsize.1 | 1 | ||||
-rw-r--r-- | axe.1 | 1 | ||||
-rw-r--r-- | blob2c.1 | 1 | ||||
-rw-r--r-- | blob2xex.1 | 1 | ||||
-rw-r--r-- | cart2xex.1 | 1 | ||||
-rw-r--r-- | dasm2atasm.1 | 1 | ||||
-rw-r--r-- | f2toxex.c | 64 | ||||
-rw-r--r-- | f2toxex.rst | 66 | ||||
-rw-r--r-- | fenders.1 | 1 | ||||
-rw-r--r-- | rom2cart.1 | 1 | ||||
-rw-r--r-- | unmac65.1 | 1 | ||||
-rw-r--r-- | xexamine.1 | 1 | ||||
-rw-r--r-- | xexcat.1 | 1 | ||||
-rw-r--r-- | xexsplit.1 | 1 | ||||
-rw-r--r-- | xfd2atr.1 | 1 |
19 files changed, 18 insertions, 132 deletions
@@ -14,9 +14,9 @@ CC=gcc CFLAGS=-Wall $(COPT) -ansi -D_GNU_SOURCE -DVERSION=\"$(VERSION)\" # BINS and SCRIPTS go in $BINDIR, DOCS go in $DOCDIR -BINS=a8eol xfd2atr atr2xfd blob2c cart2xex fenders xexsplit xexcat atrsize rom2cart unmac65 axe blob2xex xexamine f2toxex +BINS=a8eol xfd2atr atr2xfd blob2c cart2xex fenders xexsplit xexcat atrsize rom2cart unmac65 axe blob2xex xexamine SCRIPTS=dasm2atasm a8utf8 -MANS=a8eol.1 xfd2atr.1 atr2xfd.1 blob2c.1 cart2xex.1 fenders.1 xexsplit.1 xexcat.1 atrsize.1 rom2cart.1 unmac65.1 axe.1 dasm2atasm.1 a8utf8.1 blob2xex.1 xexamine.1 f2toxex.1 +MANS=a8eol.1 xfd2atr.1 atr2xfd.1 blob2c.1 cart2xex.1 fenders.1 xexsplit.1 xexcat.1 atrsize.1 rom2cart.1 unmac65.1 axe.1 dasm2atasm.1 a8utf8.1 blob2xex.1 xexamine.1 DOCS=README equates.inc *.dasm # All the programs share this version number... @@ -470,6 +470,7 @@ Watson <\fI\%urchlay@slackware.uk\fP>; Urchlay on irc.libera.chat \fI##atari\fP\ \fBblob2xex\fP(1), \fBcart2xex\fP(1), \fBdasm2atasm\fP(1), +\fBf2toxex\fP(1), \fBfenders\fP(1), \fBrom2cart\fP(1), \fBunmac65\fP(1), @@ -101,6 +101,7 @@ Watson <\fI\%urchlay@slackware.uk\fP>; Urchlay on irc.libera.chat \fI##atari\fP\ \fBblob2xex\fP(1), \fBcart2xex\fP(1), \fBdasm2atasm\fP(1), +\fBf2toxex\fP(1), \fBfenders\fP(1), \fBrom2cart\fP(1), \fBunmac65\fP(1), @@ -189,6 +189,7 @@ Watson <\fI\%urchlay@slackware.uk\fP>; Urchlay on irc.libera.chat \fI##atari\fP\ \fBblob2xex\fP(1), \fBcart2xex\fP(1), \fBdasm2atasm\fP(1), +\fBf2toxex\fP(1), \fBfenders\fP(1), \fBrom2cart\fP(1), \fBunmac65\fP(1), @@ -204,6 +204,7 @@ Watson <\fI\%urchlay@slackware.uk\fP>; Urchlay on irc.libera.chat \fI##atari\fP\ \fBblob2xex\fP(1), \fBcart2xex\fP(1), \fBdasm2atasm\fP(1), +\fBf2toxex\fP(1), \fBfenders\fP(1), \fBrom2cart\fP(1), \fBunmac65\fP(1), @@ -145,6 +145,7 @@ Watson <\fI\%urchlay@slackware.uk\fP>; Urchlay on irc.libera.chat \fI##atari\fP\ \fBblob2xex\fP(1), \fBcart2xex\fP(1), \fBdasm2atasm\fP(1), +\fBf2toxex\fP(1), \fBfenders\fP(1), \fBrom2cart\fP(1), \fBunmac65\fP(1), @@ -125,6 +125,7 @@ Watson <\fI\%urchlay@slackware.uk\fP>; Urchlay on irc.libera.chat \fI##atari\fP\ \fBblob2xex\fP(1), \fBcart2xex\fP(1), \fBdasm2atasm\fP(1), +\fBf2toxex\fP(1), \fBfenders\fP(1), \fBrom2cart\fP(1), \fBunmac65\fP(1), @@ -185,6 +185,7 @@ Watson <\fI\%urchlay@slackware.uk\fP>; Urchlay on irc.libera.chat \fI##atari\fP\ \fBblob2xex\fP(1), \fBcart2xex\fP(1), \fBdasm2atasm\fP(1), +\fBf2toxex\fP(1), \fBfenders\fP(1), \fBrom2cart\fP(1), \fBunmac65\fP(1), @@ -235,6 +235,7 @@ Watson <\fI\%urchlay@slackware.uk\fP>; Urchlay on irc.libera.chat \fI##atari\fP\ \fBblob2xex\fP(1), \fBcart2xex\fP(1), \fBdasm2atasm\fP(1), +\fBf2toxex\fP(1), \fBfenders\fP(1), \fBrom2cart\fP(1), \fBunmac65\fP(1), diff --git a/dasm2atasm.1 b/dasm2atasm.1 index 98f0e9b..a2297e6 100644 --- a/dasm2atasm.1 +++ b/dasm2atasm.1 @@ -232,6 +232,7 @@ Watson <\fI\%urchlay@slackware.uk\fP>; Urchlay on irc.libera.chat \fI##atari\fP\ \fBblob2xex\fP(1), \fBcart2xex\fP(1), \fBdasm2atasm\fP(1), +\fBf2toxex\fP(1), \fBfenders\fP(1), \fBrom2cart\fP(1), \fBunmac65\fP(1), diff --git a/f2toxex.c b/f2toxex.c deleted file mode 100644 index c2a4934..0000000 --- a/f2toxex.c +++ /dev/null @@ -1,64 +0,0 @@ -#include <stdio.h> -#include <stdint.h> -#include <stdlib.h> -#include <string.h> -#include <unistd.h> -#include <errno.h> - -#include "xex.h" - -#define SELF "f2toxex" - -void version() { - printf(SELF " " VERSION "\n"); -} - -void usage() { - version(); - printf(" Usage: " SELF " [-h | -v] | infile [outfile]\n"); -} - -char *make_outfile(char *infile) { -} - -int main(int argc, char **argv) { - int c; - char *infile, *outfile; - - while( (c = getopt(argc, argv, "hv")) > 0) { - switch(c) { - case 'h': - usage(); - exit(0); - break; - case 'v': - version(); - exit(0); - break; - default: - fprintf(stderr, SELF ": unknown option '-%c'.\n", c); - usage(); - exit(1); - break; - } - } - - if(argc > optind) { - infile = argv[optind]; - optind++; - } - - if(argc > optind) { - strcpy(outfile, argv[optind]); - optind++; - - if(argc > optind) - fprintf(stderr, SELF ": " - "ignoring extra junk on command line: '%s'.\n", argv[optind]); - } else if(strcmp(infile, "-") != 0) { - outfile = make_outfile(infile); - } - - - return 0; -} diff --git a/f2toxex.rst b/f2toxex.rst deleted file mode 100644 index 85d29a1..0000000 --- a/f2toxex.rst +++ /dev/null @@ -1,66 +0,0 @@ -.. RST source for f2toxex(1) man page. Convert with: -.. rst2man.py f2toxex.rst > f2toxex.1 - -======= -f2toxex -======= - -------------------------------------------------------------- -Convert a DASM "-f2" object file to an Atari 8-bit executable -------------------------------------------------------------- - -.. include:: manhdr.rst - -SYNOPSIS -======== - -f2toxex [ [**-h** | **-v** ] | *infile* [*outfile*] ] - -DESCRIPTION -=========== - -**f2toxex** converts an object code file created by the **dasm**\(1) -assembler, using its **-f2** option, to an Atari 8-bit executable -(.xex file). - -*infile* may be **-** to read from standard input. *outfile* may be -**-** to write to standard output. - -If *outfile* is omitted, the output will be written to: - -- If reading from standard input, write to standard output. - -- If reading from a file whose name ends with an extension, replace - the extension with *.xex*. - -- Otherwise, append *.xex* to the input filename. - -NOTES -===== - -The DASM -f2 output format is described in section **3.3.4** of the -DASM manual (**dasm.pdf**). It's reproduced here for reference: - - RAS (Random Access Segment). The output file contains one - or more hunks. Each hunk consists of a 2 byte origin (little- - endian), 2 byte length (little-endian), and that number of data - bytes. The hunks occur in the same order as initialized segments - in the assembly. There are no restrictions to segment ordering - (i.e. reverse indexed ORG statements are allowed). The next hunk - begins after the previous hunk's data, until the end of the file. - -OPTIONS -======= - --h - Print a short help message and exit. - --v - Verbose operation. - -EXIT STATUS -=========== - -Exit status is zero for success, non-zero for failure. - -.. include:: manftr.rst @@ -270,6 +270,7 @@ Watson <\fI\%urchlay@slackware.uk\fP>; Urchlay on irc.libera.chat \fI##atari\fP\ \fBblob2xex\fP(1), \fBcart2xex\fP(1), \fBdasm2atasm\fP(1), +\fBf2toxex\fP(1), \fBfenders\fP(1), \fBrom2cart\fP(1), \fBunmac65\fP(1), @@ -248,6 +248,7 @@ Watson <\fI\%urchlay@slackware.uk\fP>; Urchlay on irc.libera.chat \fI##atari\fP\ \fBblob2xex\fP(1), \fBcart2xex\fP(1), \fBdasm2atasm\fP(1), +\fBf2toxex\fP(1), \fBfenders\fP(1), \fBrom2cart\fP(1), \fBunmac65\fP(1), @@ -380,6 +380,7 @@ Watson <\fI\%urchlay@slackware.uk\fP>; Urchlay on irc.libera.chat \fI##atari\fP\ \fBblob2xex\fP(1), \fBcart2xex\fP(1), \fBdasm2atasm\fP(1), +\fBf2toxex\fP(1), \fBfenders\fP(1), \fBrom2cart\fP(1), \fBunmac65\fP(1), @@ -139,6 +139,7 @@ Watson <\fI\%urchlay@slackware.uk\fP>; Urchlay on irc.libera.chat \fI##atari\fP\ \fBblob2xex\fP(1), \fBcart2xex\fP(1), \fBdasm2atasm\fP(1), +\fBf2toxex\fP(1), \fBfenders\fP(1), \fBrom2cart\fP(1), \fBunmac65\fP(1), @@ -169,6 +169,7 @@ Watson <\fI\%urchlay@slackware.uk\fP>; Urchlay on irc.libera.chat \fI##atari\fP\ \fBblob2xex\fP(1), \fBcart2xex\fP(1), \fBdasm2atasm\fP(1), +\fBf2toxex\fP(1), \fBfenders\fP(1), \fBrom2cart\fP(1), \fBunmac65\fP(1), @@ -192,6 +192,7 @@ Watson <\fI\%urchlay@slackware.uk\fP>; Urchlay on irc.libera.chat \fI##atari\fP\ \fBblob2xex\fP(1), \fBcart2xex\fP(1), \fBdasm2atasm\fP(1), +\fBf2toxex\fP(1), \fBfenders\fP(1), \fBrom2cart\fP(1), \fBunmac65\fP(1), @@ -120,6 +120,7 @@ Watson <\fI\%urchlay@slackware.uk\fP>; Urchlay on irc.libera.chat \fI##atari\fP\ \fBblob2xex\fP(1), \fBcart2xex\fP(1), \fBdasm2atasm\fP(1), +\fBf2toxex\fP(1), \fBfenders\fP(1), \fBrom2cart\fP(1), \fBunmac65\fP(1), |