OpenCores
URL https://opencores.org/ocsvn/marca/marca/trunk

Subversion Repositories marca

[/] [marca/] [tags/] [INITIAL/] [spar/] [segtab.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 _SEGTAB_H_
19
#define _SEGTAB_H_
20
 
21
#include <stdint.h>
22
 
23
#define SEG_INITSIZE 1024
24
 
25
struct seg
26
{
27
  struct op *code;
28
  uint32_t max;
29
  uint32_t pos;
30
};
31
 
32
#include "code.h"
33
 
34
#define SEG_TEXT  0
35
#define SEG_DATA  1
36
#define SEG_BSS   2
37
#define SEG_PILE  3
38
 
39
void init_seg(uint8_t, uint32_t);
40
 
41
void set_current_segnum(uint8_t);
42
uint8_t get_current_segnum(void);
43
 
44
struct seg *get_current_seg(void);
45
struct seg *get_seg(uint8_t);
46
 
47
void adjust_segsize(struct seg *, uint32_t);
48
 
49
#endif /* _SEGTAB_H_ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.