Sha256: 163d54dcbb83fbfa92877c7a3a710878c77a811efcc90918f19afbb383c8decd

Contents?: true

Size: 1.57 KB

Versions: 2

Compression:

Stored size: 1.57 KB

Contents

##############################################################################
#   Indis framework                                                          #
#   Copyright (C) 2012 Vladimir "Farcaller" Pouzanov <farcaller@gmail.com>   #
#                                                                            #
#   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 3 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, see <http://www.gnu.org/licenses/>.    #
##############################################################################

module Indis
  module ARM
    class CpuState
      16.times { |i| attr_accessor "r#{i}" }
      
      alias :sp :r13
      alias :sp= :r13=
      
      alias :lr :r14
      alias :lr= :r14=
      
      alias :pc :r15
      alias :pc= :r15=
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
indis-arm-0.3.1 lib/indis-arm/cpu_state.rb
indis-arm-0.3.0 lib/indis-arm/cpu_state.rb