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 small program converts the a56.out file from the assembler
26 * into a file suitable for loading into 56001 memory via the
27 * SLOADER.ASM serial loader program provided on the Motorola
48 if(sscanf(buf, "%c%x%x", &seg, &addr, &data) == 3) {
49 if(seg == 'I' || seg == 'F') break;
50 if(seg != curseg || curaddr != addr) {
51 printf("\n_DATA %c %04X\n", curseg = seg, curaddr = addr);
53 if(startaddr == -1 && seg == 'P')
55 printf("%06X ", data & 0xFFFFFF);
59 printf("\n_END %04X\n", startaddr);