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

Subversion Repositories raptor64

[/] [raptor64/] [trunk/] [software/] [c64/] [source/] [Code.h] - Blame information for rev 43

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 37 robfinch
/*
2
 *      code structure definitions.
3
 */
4
 
5
enum address_mode {
6
        am_const, am_label, am_string, am_temp, am_auto,
7
        am_defcon, am_deflab, am_defstr, am_deftemp, am_defauto,
8
        am_none };
9
 
10
enum instruction {
11
        i_move, i_add, i_sub, i_mul, i_div, i_mod, i_and, i_or,
12
        i_xor, i_shl, i_shr, i_jmp, i_jeq, i_jne, i_jlt, i_jle,
13
        i_jgt, i_jge, i_call, i_enter, i_ret, i_table, i_label };
14
 
15
union aval {
16
        int             i;
17
        char            *s;
18
        };
19
 
20
struct inst {
21
        struct inst     *fwd, *back;
22
        int             opcode, size;
23
        char            sm0, sm1, dm;
24
        union aval      sv0, sv1, dv;
25
        };
26
 

powered by: WebSVN 2.1.0

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