URL
https://opencores.org/ocsvn/marca/marca/trunk
[/] [marca/] [trunk/] [spar/] [ui.h] - Blame information for rev 8
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
2 |
jeunes2 |
/* This file is part of the assembler "spar" for marca.
|
2 |
|
|
Copyright (C) 2007 Wolfgang Puffitsch
|
3 |
|
|
|
4 |
|
|
This program is free software; you can redistribute it and/or modify it
|
5 |
|
|
under the terms of the GNU Library General Public License as published
|
6 |
|
|
by the Free Software Foundation; either version 2, or (at your option)
|
7 |
|
|
any later version.
|
8 |
|
|
|
9 |
|
|
This program is distributed in the hope that it will be useful,
|
10 |
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11 |
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
12 |
|
|
Library General Public License for more details.
|
13 |
|
|
|
14 |
|
|
You should have received a copy of the GNU Library General Public
|
15 |
|
|
License along with this program; if not, write to the Free Software
|
16 |
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */
|
17 |
|
|
|
18 |
|
|
#ifndef _UI_H_
|
19 |
|
|
#define _UI_H_
|
20 |
|
|
|
21 |
|
|
#include <stdint.h>
|
22 |
|
|
#include <stdio.h>
|
23 |
|
|
#include <getopt.h>
|
24 |
|
|
|
25 |
|
|
#define MODE_DRYRUN 0
|
26 |
|
|
#define MODE_DOWNLOAD 1
|
27 |
|
|
#define MODE_INTEL 2
|
28 |
|
|
#define MODE_MIF 3
|
29 |
|
|
|
30 |
|
|
extern int8_t output_mode;
|
31 |
|
|
|
32 |
|
|
extern uint32_t codesize;
|
33 |
|
|
extern uint32_t datasize;
|
34 |
|
|
extern uint32_t romsize;
|
35 |
|
|
extern uint16_t filler;
|
36 |
|
|
|
37 |
|
|
extern int nostart;
|
38 |
|
|
extern int noend;
|
39 |
|
|
|
40 |
|
|
#define DEFAULT_MODE MODE_MIF
|
41 |
|
|
#define DEFAULT_CODESIZE 8192
|
42 |
|
|
#define DEFAULT_DATASIZE 8192
|
43 |
|
|
#define DEFAULT_ROMSIZE 256
|
44 |
|
|
#define DEFAULT_FILLER 0xFFFF
|
45 |
|
|
|
46 |
|
|
extern const char * const options;
|
47 |
|
|
extern const struct option long_options [];
|
48 |
|
|
|
49 |
|
|
#endif /* _UI_H_ */
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.