1 /*******************************************************
3 * a56 - a DSP56001 assembler
5 * Written by Quinn C. Jensen
8 *******************************************************\
11 * Copyright (C) 1990-1994 Quinn C. Jensen
13 * Permission to use, copy, modify, distribute, and sell this software
14 * and its documentation for any purpose is hereby granted without fee,
15 * provided that the above copyright notice appear in all copies and
16 * that both that copyright notice and this permission notice appear
17 * in supporting documentation. The author makes no representations
18 * about the suitability of this software for any purpose. It is
19 * provided "as is" without express or implied warranty.
22 static char *Copyright = "Copyright (C) 1990-1994 Quinn C. Jensen";
25 * This program converts the a56.out assembler output file into
26 * raw binary, suitable for conversion to S-records for an EPROM burner.
45 if(sscanf(buf, "%c%x%x", &seg, &addr, &data) == 3) {
50 fatal("%s: input line %d: can't go back\n", argv[0], line);
51 } else if(addr != curaddr) {
52 while(curaddr < addr) {
67 putchar(data >> 0 & 0xFF);
68 putchar(data >> 8 & 0xFF);
69 putchar(data >> 16 & 0xFF);