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

Subversion Repositories scarm

[/] [scarm/] [branches/] [release_0_1/] [src/] [scSWP.h] - Blame information for rev 8

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 5 zhong
// scSWP.h: interface for the scSWP class.
2
//
3
//////////////////////////////////////////////////////////////////////
4
 
5
#if !defined(AFX_SCSWP_H__8C326336_AB49_11D6_BB1E_000000000000__INCLUDED_)
6
#define AFX_SCSWP_H__8C326336_AB49_11D6_BB1E_000000000000__INCLUDED_
7
 
8
#if _MSC_VER > 1000
9
#pragma once
10
#endif // _MSC_VER > 1000
11
 
12
#include "..\SRC\scARMInstruction.h"
13
#include "scTypes.h"    // Added by ClassView
14
const uint32_t SWP_MASK  =  0x0FB00FF0;
15
const uint32_t SWP_SIG  =   0x01000090;
16
 
17
class scSWP : public scARMInstruction
18
{
19
/* Swap memory and register */
20
typedef struct SWPTAG
21
{
22
  uint32_t cond  : 4;
23
  uint32_t pad   : 5;
24
  uint32_t byte  : 1;
25
  uint32_t pad2  : 2;
26
  uint32_t rn    : 4;
27
  uint32_t rd    : 4;
28
  uint32_t pad3  : 8;
29
  uint32_t rm    : 4;
30
} SWP;
31
SWP ir;
32
  static const char* kind_string;
33
public:
34
        uint32_t A();
35
        const char* kind();
36
        scSWP(uint32_t);
37
        virtual ~scSWP();
38
 
39
};
40
 
41
#endif // !defined(AFX_SCSWP_H__8C326336_AB49_11D6_BB1E_000000000000__INCLUDED_)

powered by: WebSVN 2.1.0

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