📄 ls_instruction.h
字号:
/*
* Copyright (c) 2005 Zhejiang University, P.R.China
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
//=============================================================================
/**
* \file ARM/LS_Instruction.h
*
* $Id: LS_Instruction.h,v 1.2 2005/06/16 05:49:36 chenj Exp $
*
* \author Jie Chen <alt_alt@163.com>
*/
//=============================================================================
#ifndef ARM__LS_INSTRUCTION_H_INCLUDED
#define ARM__LS_INSTRUCTION_H_INCLUDED
#include "Instruction.h"
namespace ARM {
//!the class simulates the memory access instructions
class LS_Instruction: public ARM::Instruction
{
protected:
// virtual bool test_and_parse(Core::Instruction_Unit & binary);
virtual void execute(Core::Instruction_Unit binary);
//!addressing mode of word or unsigned byte loading
void get_address(Core::Instruction_Unit & binary,u32 & addr);
//!addressing mode of half word or signed byte loading
void get_sh_address(Core::Instruction_Unit & binary,u32 & addr);
//!shift the value of register Rm
void shft_rm(Core::Instruction_Unit & binary,u32 & index);
//!addressing mode of word or unsigned byte loading with forcing usermode
void get_usermode_address(Core::Instruction_Unit & binary,u32 & addr);
//!execution of LDR
void LDR(Core::Instruction_Unit & binary);
//!execution of LDRB
void LDRB(Core::Instruction_Unit & binary);
//!execution of LDRBT
void LDRBT(Core::Instruction_Unit & binary);
//!execution of LDRH
void LDRH(Core::Instruction_Unit & binary);
//!execution of LDRSB
void LDRSB(Core::Instruction_Unit & binary);
//!execution of LDRSH
void LDRSH(Core::Instruction_Unit & binary);
//!execution of LDRT
void LDRT(Core::Instruction_Unit & binary);
//!execution of STR
void STR(Core::Instruction_Unit & binary);
//!execution of STRB
void STRB(Core::Instruction_Unit & binary);
//!execution of STRBT
void STRBT(Core::Instruction_Unit & binary);
//!execution of STRH
void STRH(Core::Instruction_Unit & binary);
//!execution of STRT
void STRT(Core::Instruction_Unit & binary);
DECLARE_SINGLETON(LS_Instruction)
};
} //namespace
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -