Subversion Repositories Kolibri OS

Rev

Rev 5191 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5191 Rev 6324
Line 1... Line 1...
1
/* Definitions for decoding the moxie opcode table.
1
/* Definitions for decoding the moxie opcode table.
2
   Copyright 2009 Free Software Foundation, Inc.
2
   Copyright (C) 2009-2015 Free Software Foundation, Inc.
3
   Contributed by Anthony Green (green@moxielogic.com).
3
   Contributed by Anthony Green (green@moxielogic.com).
Line 4... Line 4...
4
 
4
 
5
   This program is free software; you can redistribute it and/or modify
5
   This program is free software; you can redistribute it and/or modify
6
   it under the terms of the GNU General Public License as published by
6
   it under the terms of the GNU General Public License as published by
Line 26... Line 26...
26
    Some use just a 4 byte immediate value          (MOXIE_F1_4)
26
    Some use just a 4 byte immediate value          (MOXIE_F1_4)
27
    Some use just a 4 byte memory address           (MOXIE_F1_M)
27
    Some use just a 4 byte memory address           (MOXIE_F1_M)
28
    Some use B and an indirect A                    (MOXIE_F1_AiB)
28
    Some use B and an indirect A                    (MOXIE_F1_AiB)
29
    Some use A and an indirect B                    (MOXIE_F1_ABi)
29
    Some use A and an indirect B                    (MOXIE_F1_ABi)
30
    Some consume a 4 byte immediate value and use X (MOXIE_F1_4A)
30
    Some consume a 4 byte immediate value and use X (MOXIE_F1_4A)
31
    Some use B and an indirect A plus 4 bytes       (MOXIE_F1_AiB4)
31
    Some use B and an indirect A plus 2 byte offset (MOXIE_F1_AiB2)
32
    Some use A and an indirect B plus 4 bytes       (MOXIE_F1_ABi4)
32
    Some use A and an indirect B plus 2 byte offset (MOXIE_F1_ABi2)
Line 33... Line 33...
33
 
33
 
Line 34... Line 34...
34
  Form 2 instructions also come in different flavors:
34
  Form 2 instructions also come in different flavors:
35
 
35
 
Line 48... Line 48...
48
#define MOXIE_F1_A4   0x104
48
#define MOXIE_F1_A4   0x104
49
#define MOXIE_F1_4    0x105
49
#define MOXIE_F1_4    0x105
50
#define MOXIE_F1_AiB  0x106
50
#define MOXIE_F1_AiB  0x106
51
#define MOXIE_F1_ABi  0x107
51
#define MOXIE_F1_ABi  0x107
52
#define MOXIE_F1_4A   0x108
52
#define MOXIE_F1_4A   0x108
53
#define MOXIE_F1_AiB4 0x109
53
#define MOXIE_F1_AiB2 0x109
54
#define MOXIE_F1_ABi4 0x10a
54
#define MOXIE_F1_ABi2 0x10a
55
#define MOXIE_F1_M    0x10b
55
#define MOXIE_F1_M    0x10b
Line 56... Line 56...
56
 
56
 
57
#define MOXIE_F2_NARG 0x200
57
#define MOXIE_F2_NARG 0x200