Added as10k1 tool (EMU10K1 FX8010 DSP assembler).

This commit is contained in:
Jaroslav Kysela 2001-04-12 08:21:01 +00:00
parent a4569af2bb
commit f2d80b5b5d
28 changed files with 3523 additions and 0 deletions

60
as10k1/as10k1.h Normal file
View file

@ -0,0 +1,60 @@
/***************************************************************************
as10k1.h - description
-------------------
Date : May 25, 2000
Copyright : (C) 2000 by Daniel Bertrand
Email : d.bertrand@ieee.ca
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include"types.h"
#include"proto.h"
#define max_depth 3 //max include nesting depth
FILE *dc_fp;
int include_depth=0;
#define MAXINCLUDES 25
struct list_head sym_head;
struct alloc
{
char *mem_start;
char *mem_end;
char *name;
};
struct alloc buff[MAXINCLUDES];
u32 dsp_code[DSP_CODE_SIZE];
int ip=0;
int ds_addr=0x100; // DS start at 0x100 ( start of the general purpose registers).
int tram_addr=0; // tram data/addr read/write counter
struct delay tram_delay[MAX_TANK_ADDR];
struct lookup tram_lookup[MAX_TANK_ADDR];
int gpr_input_count=0;
int gpr_output_count=0;
int gpr_static_count=0;
int gpr_dynamic_count=0;
int gpr_control_count=0;
int tram_delay_count=0;
int tram_table_count=0;
int gpr_constant_count=0;
char patch_name[PATCH_NAME_SIZE]="NO_NAME";
int macro_depth=0;