source
stringclasses
1 value
repo
stringlengths
5
63
repo_url
stringlengths
24
82
path
stringlengths
5
167
language
stringclasses
1 value
license
stringclasses
5 values
stars
int64
10
51.4k
ref
stringclasses
23 values
size_bytes
int64
200
258k
text
stringlengths
137
258k
github
lserman/capistrano-elbas
https://github.com/lserman/capistrano-elbas
spec/aws/launch_template_spec.rb
Ruby
mit
95
master
1,549
describe Elbas::AWS::LaunchTemplate do subject { Elbas::AWS::LaunchTemplate.new 'test-lt', 'test', '1' } before do webmock :post, %r{ec2.(.*).amazonaws.com\/\z} => 'CreateLaunchTemplateVersion.200.xml', with: Hash[body: /Action=CreateLaunchTemplateVersion/] end describe '#initialize' do it 'sets...
github
lserman/capistrano-elbas
https://github.com/lserman/capistrano-elbas
spec/aws/instance_spec.rb
Ruby
mit
95
master
880
describe Elbas::AWS::Instance do subject { Elbas::AWS::Instance.new 'i-1234567890', 'ec2-1234567890.amazonaws.com', 16 } describe '#initialize' do it 'sets the AWS counterpart' do expect(subject.aws_counterpart).to be_a_kind_of ::Aws::EC2::Instance expect(subject.aws_counterpart.id).to eq 'i-123456...
github
lserman/capistrano-elbas
https://github.com/lserman/capistrano-elbas
spec/aws/taggable_spec.rb
Ruby
mit
95
master
1,342
describe Elbas::AWS::Taggable do TestTaggable = Class.new do include Elbas::AWS::Taggable def aws_counterpart @aws_counterpart ||= ::Aws::EC2::Instance.new 'test' end end let(:subject) { TestTaggable.new } context 'Tagging fails because resource is not created yet' do before do ...
github
lserman/capistrano-elbas
https://github.com/lserman/capistrano-elbas
spec/aws/ami_spec.rb
Ruby
mit
95
master
3,974
describe Elbas::AWS::AMI do subject { Elbas::AWS::AMI.new 'test' } describe '#initialize' do it 'sets the id' do expect(subject.id).to eq 'test' end it 'has an aws-sdk counterpart' do expect(subject.aws_counterpart).to be_a_kind_of ::Aws::EC2::Image expect(subject.aws_counterpart.id)...
github
lserman/capistrano-elbas
https://github.com/lserman/capistrano-elbas
spec/aws/instance_collection_spec.rb
Ruby
mit
95
master
1,366
describe Elbas::AWS::InstanceCollection do subject { Elbas::AWS::InstanceCollection.new ['i-1234567890', 'i-500'] } scenarios = [ { context: 'Single AWS reservation', mock_response_file: 'DescribeInstances.200.xml' }, { context: 'Multiple AWS reservation', mock_response_file: 'DescribeInstances_MultipleRes...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
aarch64.gemspec
Ruby
apache-2.0
95
main
827
$: << File.expand_path("lib") require "aarch64/version" Gem::Specification.new do |s| s.name = "aarch64" s.version = AArch64::VERSION s.summary = "Write ARM64 assembly in Ruby!" s.description = "Tired of writing Ruby in Ruby? Now you can write ARM64 assembly in Ruby!" s.authors = ["Aaron ...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
Rakefile
Ruby
apache-2.0
95
main
6,186
ENV["MT_NO_PLUGINS"] = "1" require "rake/testtask" require "rake/clean" require "bundler" Bundler::GemHelper.install_tasks XML_FILE = "tmp/onebigfile.xml" ISA_FILE = "tmp/ISA_A64_xml_v88A-2021-12.tar.gz" ISA_URL = "https://developer.arm.com/-/media/developer/products/architecture/armv8-a-architecture/2021-12/ISA_...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
test/not_supported_yet_test.rb
Ruby
apache-2.0
95
main
1,149
require "helper" class NotSupportedYetTest < AArch64::Test def setup skip "These aren't supported by clang" end def test_SETGP # SETGE [<Xd>]!, <Xn>!, <Xs> # SETGM [<Xd>]!, <Xn>!, <Xs> # SETGP [<Xd>]!, <Xn>!, <Xs> end def test_SETGPN # SETGEN [<Xd>]!, <Xn>!, <Xs> # SETGMN [<Xd>...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
test/all_adds_test.rb
Ruby
apache-2.0
95
main
3,895
require "helper" class AllADDSTest < AArch64::Test include AArch64 include AArch64::Registers include AArch64::Registers::Methods include AArch64::Extends::Methods include AArch64::Shifts::Methods def test_all_adds assert_bytes [0x82,0x08,0x25,0xab] do |asm| asm.adds x2, x4, w5, uxtb(2) ...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
test/base_instructions_test.rb
Ruby
apache-2.0
95
main
252,624
require "helper" class BaseInstructionsTest < AArch64::Test include AArch64 include AArch64::Registers include AArch64::Registers::Methods include AArch64::Conditions::Methods include AArch64::Extends::Methods include AArch64::Shifts::Methods include AArch64::Names::Methods include AArch64::SystemRegis...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
test/helper.rb
Ruby
apache-2.0
95
main
2,471
ENV["MT_NO_PLUGINS"] = "1" require "aarch64" require "aarch64/parser" require "minitest/autorun" require "hatstone" require "stringio" module AArch64 class Test < Minitest::Test def disasm code hs = Hatstone.new(Hatstone::ARCH_ARM64, Hatstone::MODE_ARM) hs.disasm(code, 0x0) end def f str ...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
test/parser_test.rb
Ruby
apache-2.0
95
main
88,601
require "helper" require "aarch64/parser" class ParserTest < AArch64::Test def test_parse_error error = assert_raises(AArch64::ParseError) do parse "mov x1, x0\nmov x1, #2 // comments not supported" end assert_equal 'parse error on value "/" (UNKNOWN_CHAR) on line 2 at pos 23/48', error.message ...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
test/dsl_test.rb
Ruby
apache-2.0
95
main
675
require "helper" class DSLTest < AArch64::Test def test_patch_location asm = AArch64::Assembler.new found = nil asm.pretty do asm.mov x0, x1 asm.patch_location { |loc| found = loc } asm.movz x2, 5 end bytes = asm.to_binary assert_equal 8, bytes.bytesize assert_equal 4, ...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64.rb
Ruby
apache-2.0
95
main
59,236
# frozen_string_literal: true require "aarch64/instructions" require "aarch64/system_registers/mrs_msr_64" require "aarch64/utils" module AArch64 class ParseError < StandardError; end module Registers class Register < ClassGen.pos(:to_i, :sp, :zr) def initialize(...) super(...) freeze ...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/parser.tab.rb
Ruby
apache-2.0
95
main
156,070
# # DO NOT MODIFY!!!! # This file is automatically generated by Racc 1.6.2 # from Racc grammar file "". # require 'racc/parser.rb' module AArch64 class Parser < Racc::Parser ##### State transition tables begin ### racc_action_table = [ 277, 279, 1240, 6, 7, 8, 932, 932, 9, 10, 11, ...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/parser.rb
Ruby
apache-2.0
95
main
36,646
# frozen_string_literal: true require "strscan" require "aarch64/system_registers/mrs_msr_64" require "aarch64" require "aarch64/tokenizer" module AArch64 class Parser include Instructions def parse str str += "\n" unless str.end_with?("\n") @scan = Tokenizer.new(str) @asm = AArch64::Asse...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/tokenizer.rb
Ruby
apache-2.0
95
main
7,605
module AArch64 class Tokenizer SYS_REG_SCAN = Regexp.new(AArch64::SystemRegisters.constants.sort_by { |c| -c.length }.join("|"), true) SYS_REG_MAP = Hash[AArch64::SystemRegisters.constants.map { |k| [k.to_s.downcase, AArch64::SystemRegisters.const_get(k)] }] # Created with: puts File.read('./l...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions.rb
Ruby
apache-2.0
95
main
13,090
module AArch64 module Instructions class Instruction private def unwrap_label label, position if label.immediate? label.unwrap_label else label.unwrap_label - position end end def check_mask val, mask val = val.to_i if val > ma...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/utils.rb
Ruby
apache-2.0
95
main
11,579
# frozen_string_literal: true module AArch64 module ClassGen def self.pos *names Class.new do attr_reader(*names) sig = names.map { "#{_1}" }.join(", ") init = names.map { "@#{_1} = #{_1}" }.join(";") class_eval("def initialize #{sig}; #{init}; end") end end end ...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/udf_perm_undef.rb
Ruby
apache-2.0
95
main
435
module AArch64 module Instructions # UDF -- A64 # Permanently Undefined # UDF #<imm> class UDF_perm_undef < Instruction def initialize imm @imm = check_mask(imm, 0xffff) end def encode _ UDF_perm_undef(@imm) end private def UDF_perm_undef imm16 ...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/hvc.rb
Ruby
apache-2.0
95
main
405
module AArch64 module Instructions # HVC -- A64 # Hypervisor Call # HVC #<imm> class HVC < Instruction def initialize imm @imm = check_mask(imm, 0xffff) end def encode _ HVC @imm end private def HVC imm16 insn = 0b11010100_000_00000000000...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/csneg.rb
Ruby
apache-2.0
95
main
797
module AArch64 module Instructions # CSNEG -- A64 # Conditional Select Negation # CSNEG <Wd>, <Wn>, <Wm>, <cond> # CSNEG <Xd>, <Xn>, <Xm>, <cond> class CSNEG < Instruction def initialize rd, rn, rm, cond, sf @rd = check_mask(rd, 0x1f) @rn = check_mask(rn, 0x1f) ...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/ldrsw_lit.rb
Ruby
apache-2.0
95
main
564
module AArch64 module Instructions # LDRSW (literal) -- A64 # Load Register Signed Word (literal) # LDRSW <Xt>, <label> class LDRSW_lit < Instruction def initialize rt, imm19 @rt = check_mask(rt, 0x1f) @imm19 = imm19 end def encode pos LDRSW_lit(check_mas...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/b_cond.rb
Ruby
apache-2.0
95
main
536
module AArch64 module Instructions # B.cond -- A64 # Branch conditionally # B.<cond> <label> class B_cond < Instruction def initialize cond, label @cond = check_mask(cond, 0xf) @label = label end def encode pos B_cond(check_mask(unwrap_label(@label, pos), 0...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/stxrb.rb
Ruby
apache-2.0
95
main
589
module AArch64 module Instructions # STXRB -- A64 # Store Exclusive Register Byte # STXRB <Ws>, <Wt>, [<Xn|SP>{,#0}] class STXRB < Instruction def initialize rs, rt, rn @rs = check_mask(rs, 0x1f) @rt = check_mask(rt, 0x1f) @rn = check_mask(rn, 0x1f) end def ...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/strb_imm_unsigned.rb
Ruby
apache-2.0
95
main
662
module AArch64 module Instructions # STRB (immediate) -- A64 # Store Register Byte (immediate) # STRB <Wt>, [<Xn|SP>{, #<pimm>}] class STRB_imm_unsigned < Instruction def initialize rt, rn, imm12 @rt = check_mask(rt, 0x1f) @rn = check_mask(rn, 0x1f) @imm12 = check_...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/dgh.rb
Ruby
apache-2.0
95
main
215
module AArch64 module Instructions # DGH -- A64 # Data Gathering Hint # DGH class DGH < Instruction def encode _ 0b1101010100_0_00_011_0010_0000_110_11111 end end end end
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/ldur_gen.rb
Ruby
apache-2.0
95
main
736
module AArch64 module Instructions # LDUR -- A64 # Load Register (unscaled) # LDUR <Wt>, [<Xn|SP>{, #<simm>}] # LDUR <Xt>, [<Xn|SP>{, #<simm>}] class LDUR_gen < Instruction def initialize rt, rn, imm9, size @rt = check_mask(rt, 0x1f) @rn = check_mask(rn, 0x1f) @...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/crc32.rb
Ruby
apache-2.0
95
main
837
module AArch64 module Instructions # CRC32B, CRC32H, CRC32W, CRC32X -- A64 # CRC32 checksum # CRC32B <Wd>, <Wn>, <Wm> # CRC32H <Wd>, <Wn>, <Wm> # CRC32W <Wd>, <Wn>, <Wm> # CRC32X <Wd>, <Wn>, <Xm> class CRC32 < Instruction def initialize rd, rn, rm, sz, sf @rd = check_mask...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/madd.rb
Ruby
apache-2.0
95
main
751
module AArch64 module Instructions # MADD -- A64 # Multiply-Add # MADD <Wd>, <Wn>, <Wm>, <Wa> # MADD <Xd>, <Xn>, <Xm>, <Xa> class MADD < Instruction def initialize rd, rn, rm, ra, sf @rd = check_mask(rd, 0x1f) @rn = check_mask(rn, 0x1f) @rm = check_mask(rm, 0x1f) ...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/drps.rb
Ruby
apache-2.0
95
main
224
module AArch64 module Instructions # DRPS -- A64 # Debug restore process state # DRPS class DRPS < Instruction def encode _ 0b1101011_0101_11111_000000_11111_00000 end end end end
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/movz.rb
Ruby
apache-2.0
95
main
725
module AArch64 module Instructions # MOVZ -- A64 # Move wide with zero # MOVZ <Wd>, #<imm>{, LSL #<shift>} # MOVZ <Xd>, #<imm>{, LSL #<shift>} class MOVZ < Instruction def initialize reg, imm, shift, sf @reg = check_mask(reg, 0x1f) @imm = check_mask(imm, 0xffff) ...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/stlur_gen.rb
Ruby
apache-2.0
95
main
749
module AArch64 module Instructions # STLUR -- A64 # Store-Release Register (unscaled) # STLUR <Wt>, [<Xn|SP>{, #<simm>}] # STLUR <Xt>, [<Xn|SP>{, #<simm>}] class STLUR_gen < Instruction def initialize rt, rn, imm9, size @rt = check_mask(rt, 0x1f) @rn = check_mask(rn, 0x...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/adr.rb
Ruby
apache-2.0
95
main
729
module AArch64 module Instructions # ADR -- A64 # Form PC-relative address # ADR <Xd>, <label> class ADR < Instruction def initialize xd, label @xd = check_mask(xd, 0x1f) @label = label end def encode position label = if @label.immediate? ...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/pacib.rb
Ruby
apache-2.0
95
main
705
module AArch64 module Instructions # PACIB, PACIB1716, PACIBSP, PACIBZ, PACIZB -- A64 # Pointer Authentication Code for Instruction address, using key B # PACIB <Xd>, <Xn|SP> # PACIZB <Xd> # PACIB1716 # PACIBSP # PACIBZ class PACIB < Instruction def initialize rd, rn, z ...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/add.rb
Ruby
apache-2.0
95
main
272
module AArch64 module Instructions module ADD autoload :ADDSUB_ext, "aarch64/instructions/add/addsub_ext" autoload :ADDSUB_imm, "aarch64/instructions/add/addsub_imm" autoload :ADDSUB_shift, "aarch64/instructions/add/addsub_shift" end end end
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/smulh.rb
Ruby
apache-2.0
95
main
570
module AArch64 module Instructions # SMULH -- A64 # Signed Multiply High # SMULH <Xd>, <Xn>, <Xm> class SMULH < Instruction def initialize rd, rn, rm @rd = check_mask(rd, 0x1f) @rn = check_mask(rn, 0x1f) @rm = check_mask(rm, 0x1f) end def encode _ SM...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/stg.rb
Ruby
apache-2.0
95
main
774
module AArch64 module Instructions # STG -- A64 # Store Allocation Tag # STG <Xt|SP>, [<Xn|SP>], #<simm> # STG <Xt|SP>, [<Xn|SP>, #<simm>]! # STG <Xt|SP>, [<Xn|SP>{, #<simm>}] class STG < Instruction def initialize xt, xn, imm9, option @xt = check_mask(xt, 0x1f) @x...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/ldaprb.rb
Ruby
apache-2.0
95
main
517
module AArch64 module Instructions # LDAPRB -- A64 # Load-Acquire RCpc Register Byte # LDAPRB <Wt>, [<Xn|SP> {,#0}] class LDAPRB < Instruction def initialize rt, rn @rt = check_mask(rt, 0x1f) @rn = check_mask(rn, 0x1f) end def encode _ LDAPRB(@rn, @rt) ...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/asrv.rb
Ruby
apache-2.0
95
main
681
module AArch64 module Instructions # ASRV -- A64 # Arithmetic Shift Right Variable # ASRV <Wd>, <Wn>, <Wm> # ASRV <Xd>, <Xn>, <Xm> class ASRV < Instruction def initialize rd, rn, rm, sf @rd = check_mask(rd, 0x1f) @rn = check_mask(rn, 0x1f) @rm = check_mask(rm, 0x1f)...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/ldsmax.rb
Ruby
apache-2.0
95
main
1,147
module AArch64 module Instructions # LDSMAX, LDSMAXA, LDSMAXAL, LDSMAXL -- A64 # Atomic signed maximum on word or doubleword in memory # LDSMAX <Ws>, <Wt>, [<Xn|SP>] # LDSMAXA <Ws>, <Wt>, [<Xn|SP>] # LDSMAXAL <Ws>, <Wt>, [<Xn|SP>] # LDSMAXL <Ws>, <Wt>, [<Xn|SP>] # LDSMAX <Xs>, <Xt>, [...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/ldrsb_imm.rb
Ruby
apache-2.0
95
main
1,025
module AArch64 module Instructions # LDRSB (immediate) -- A64 # Load Register Signed Byte (immediate) # LDRSB <Wt>, [<Xn|SP>], #<simm> # LDRSB <Xt>, [<Xn|SP>], #<simm> # LDRSB <Wt>, [<Xn|SP>, #<simm>]! # LDRSB <Xt>, [<Xn|SP>, #<simm>]! # LDRSB <Wt>, [<Xn|SP>{, #<pimm>}] # LDRSB <...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/rmif.rb
Ruby
apache-2.0
95
main
602
module AArch64 module Instructions # RMIF -- A64 # Rotate, Mask Insert Flags # RMIF <Xn>, #<shift>, #<mask> class RMIF < Instruction def initialize rn, imm6, mask @rn = check_mask(rn, 0x1f) @imm6 = check_mask(imm6, 0x3f) @mask = check_mask(mask, 0x0f) end ...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/nop.rb
Ruby
apache-2.0
95
main
208
module AArch64 module Instructions # NOP -- A64 # No Operation # NOP class NOP < Instruction def encode _ 0b1101010100_0_00_011_0010_0000_000_11111 end end end end
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/ldeor.rb
Ruby
apache-2.0
95
main
1,130
module AArch64 module Instructions # LDEOR, LDEORA, LDEORAL, LDEORL -- A64 # Atomic exclusive OR on word or doubleword in memory # LDEOR <Ws>, <Wt>, [<Xn|SP>] # LDEORA <Ws>, <Wt>, [<Xn|SP>] # LDEORAL <Ws>, <Wt>, [<Xn|SP>] # LDEORL <Ws>, <Wt>, [<Xn|SP>] # LDEOR <Xs>, <Xt>, [<Xn|SP>] ...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/stlxrb.rb
Ruby
apache-2.0
95
main
602
module AArch64 module Instructions # STLXRB -- A64 # Store-Release Exclusive Register Byte # STLXRB <Ws>, <Wt>, [<Xn|SP>{,#0}] class STLXRB < Instruction def initialize rs, rt, rn @rs = check_mask(rs, 0x1f) @rt = check_mask(rt, 0x1f) @rn = check_mask(rn, 0x1f) end ...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/msr_reg.rb
Ruby
apache-2.0
95
main
898
module AArch64 module Instructions # MSR (register) -- A64 # Move general-purpose register to System Register # MSR (<systemreg>|S<op0>_<op1>_<Cn>_<Cm>_<op2>), <Xt> class MSR_reg < Instruction def initialize o0, op1, crn, crm, op2, rt @o0 = check_mask(o0, 0x01) @op1 = check_mas...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/ldp_gen.rb
Ruby
apache-2.0
95
main
1,082
module AArch64 module Instructions # LDP -- A64 # Load Pair of Registers # LDP <Wt1>, <Wt2>, [<Xn|SP>], #<imm> # LDP <Xt1>, <Xt2>, [<Xn|SP>], #<imm> # LDP <Wt1>, <Wt2>, [<Xn|SP>, #<imm>]! # LDP <Xt1>, <Xt2>, [<Xn|SP>, #<imm>]! # LDP <Wt1>, <Wt2>, [<Xn|SP>{, #<imm>}] # LDP <Xt1>, ...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/prfum.rb
Ruby
apache-2.0
95
main
622
module AArch64 module Instructions # PRFUM -- A64 # Prefetch Memory (unscaled offset) # PRFUM (<prfop>|#<imm5>), [<Xn|SP>{, #<simm>}] class PRFUM < Instruction def initialize rt, rn, imm9 @rt = check_mask(rt, 0x1f) @rn = check_mask(rn, 0x1f) @imm9 = check_mask(imm9, 0...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/stgp.rb
Ruby
apache-2.0
95
main
907
module AArch64 module Instructions # STGP -- A64 # Store Allocation Tag and Pair of registers # STGP <Xt1>, <Xt2>, [<Xn|SP>], #<imm> # STGP <Xt1>, <Xt2>, [<Xn|SP>, #<imm>]! # STGP <Xt1>, <Xt2>, [<Xn|SP>{, #<imm>}] class STGP < Instruction def initialize xt, xt2, xn, simm7, option ...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/lduminb.rb
Ruby
apache-2.0
95
main
899
module AArch64 module Instructions # LDUMINB, LDUMINAB, LDUMINALB, LDUMINLB -- A64 # Atomic unsigned minimum on byte in memory # LDUMINAB <Ws>, <Wt>, [<Xn|SP>] # LDUMINALB <Ws>, <Wt>, [<Xn|SP>] # LDUMINB <Ws>, <Wt>, [<Xn|SP>] # LDUMINLB <Ws>, <Wt>, [<Xn|SP>] class LDUMINB < Instruction...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/ldtrb.rb
Ruby
apache-2.0
95
main
610
module AArch64 module Instructions # LDTRB -- A64 # Load Register Byte (unprivileged) # LDTRB <Wt>, [<Xn|SP>{, #<simm>}] class LDTRB < Instruction def initialize rt, rn, imm9 @rt = check_mask(rt, 0x1f) @rn = check_mask(rn, 0x1f) @imm9 = check_mask(imm9, 0x1ff) ...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/sub.rb
Ruby
apache-2.0
95
main
272
module AArch64 module Instructions module SUB autoload :ADDSUB_ext, "aarch64/instructions/sub/addsub_ext" autoload :ADDSUB_imm, "aarch64/instructions/sub/addsub_imm" autoload :ADDSUB_shift, "aarch64/instructions/sub/addsub_shift" end end end
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/ldr_imm_unsigned.rb
Ruby
apache-2.0
95
main
767
module AArch64 module Instructions # LDR (immediate) -- A64 # Load Register (immediate) # LDR <Wt>, [<Xn|SP>{, #<pimm>}] # LDR <Xt>, [<Xn|SP>{, #<pimm>}] class LDR_imm_unsigned < Instruction def initialize rt, rn, imm12, size @rt = check_mask(rt, 0x1f) @rn = check_mas...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/pacga.rb
Ruby
apache-2.0
95
main
597
module AArch64 module Instructions # PACGA -- A64 # Pointer Authentication Code, using Generic key # PACGA <Xd>, <Xn>, <Xm|SP> class PACGA < Instruction def initialize rd, rn, rm @rd = check_mask(rd, 0x1f) @rn = check_mask(rn, 0x1f) @rm = check_mask(rm, 0x1f) end ...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/msub.rb
Ruby
apache-2.0
95
main
756
module AArch64 module Instructions # MSUB -- A64 # Multiply-Subtract # MSUB <Wd>, <Wn>, <Wm>, <Wa> # MSUB <Xd>, <Xn>, <Xm>, <Xa> class MSUB < Instruction def initialize rd, rn, rm, ra, sf @rd = check_mask(rd, 0x1f) @rn = check_mask(rn, 0x1f) @rm = check_mask(rm, 0x1...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/pacia.rb
Ruby
apache-2.0
95
main
705
module AArch64 module Instructions # PACIA, PACIA1716, PACIASP, PACIAZ, PACIZA -- A64 # Pointer Authentication Code for Instruction address, using key A # PACIA <Xd>, <Xn|SP> # PACIZA <Xd> # PACIA1716 # PACIASP # PACIAZ class PACIA < Instruction def initialize rd, rn, z ...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/ldumaxh.rb
Ruby
apache-2.0
95
main
903
module AArch64 module Instructions # LDUMAXH, LDUMAXAH, LDUMAXALH, LDUMAXLH -- A64 # Atomic unsigned maximum on halfword in memory # LDUMAXAH <Ws>, <Wt>, [<Xn|SP>] # LDUMAXALH <Ws>, <Wt>, [<Xn|SP>] # LDUMAXH <Ws>, <Wt>, [<Xn|SP>] # LDUMAXLH <Ws>, <Wt>, [<Xn|SP>] class LDUMAXH < Instruc...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/st2g.rb
Ruby
apache-2.0
95
main
782
module AArch64 module Instructions # ST2G -- A64 # Store Allocation Tags # ST2G <Xt|SP>, [<Xn|SP>], #<simm> # ST2G <Xt|SP>, [<Xn|SP>, #<simm>]! # ST2G <Xt|SP>, [<Xn|SP>{, #<simm>}] class ST2G < Instruction def initialize xt, xn, imm9, option @xt = check_mask(xt, 0x1f) ...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/ldclr.rb
Ruby
apache-2.0
95
main
1,127
module AArch64 module Instructions # LDCLR, LDCLRA, LDCLRAL, LDCLRL -- A64 # Atomic bit clear on word or doubleword in memory # LDCLR <Ws>, <Wt>, [<Xn|SP>] # LDCLRA <Ws>, <Wt>, [<Xn|SP>] # LDCLRAL <Ws>, <Wt>, [<Xn|SP>] # LDCLRL <Ws>, <Wt>, [<Xn|SP>] # LDCLR <Xs>, <Xt>, [<Xn|SP>] #...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/prfm_reg.rb
Ruby
apache-2.0
95
main
833
module AArch64 module Instructions # PRFM (register) -- A64 # Prefetch Memory (register) # PRFM (<prfop>|#<imm5>), [<Xn|SP>, (<Wm>|<Xm>){, <extend> {<amount>}}] class PRFM_reg < Instruction def initialize rt, rn, rm, option, s @rt = check_mask(rt, 0x1f) @rn = check_mask(...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/reta.rb
Ruby
apache-2.0
95
main
448
module AArch64 module Instructions # RETAA, RETAB -- A64 # Return from subroutine, with pointer authentication # RETAA # RETAB class RETA < Instruction def initialize m @m = check_mask(m, 0x01) end def encode _ RETA(@m) end private def RETA m ...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/hint.rb
Ruby
apache-2.0
95
main
491
module AArch64 module Instructions # HINT -- A64 # Hint instruction # HINT #<imm> class HINT < Instruction def initialize crm, op2 @crm = check_mask(crm, 0x0f) @op2 = check_mask(op2, 0x07) end def encode _ HINT(@crm, @op2) end private def...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/rbit_int.rb
Ruby
apache-2.0
95
main
585
module AArch64 module Instructions # RBIT -- A64 # Reverse Bits # RBIT <Wd>, <Wn> # RBIT <Xd>, <Xn> class RBIT_int < Instruction def initialize rd, rn, sf @rd = check_mask(rd, 0x1f) @rn = check_mask(rn, 0x1f) @sf = check_mask(sf, 0x01) end def encode _ ...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/umaddl.rb
Ruby
apache-2.0
95
main
664
module AArch64 module Instructions # UMADDL -- A64 # Unsigned Multiply-Add Long # UMADDL <Xd>, <Wn>, <Wm>, <Xa> class UMADDL < Instruction def initialize xd, wn, wm, xa @xd = check_mask(xd, 0x1f) @wn = check_mask(wn, 0x1f) @wm = check_mask(wm, 0x1f) @xa = check_m...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/ldrsw_imm.rb
Ruby
apache-2.0
95
main
822
module AArch64 module Instructions # LDRSW (immediate) -- A64 # Load Register Signed Word (immediate) # LDRSW <Xt>, [<Xn|SP>], #<simm> # LDRSW <Xt>, [<Xn|SP>, #<simm>]! # LDRSW <Xt>, [<Xn|SP>{, #<pimm>}] class LDRSW_imm < Instruction def initialize rt, rn, imm9, option @rt ...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/wfe.rb
Ruby
apache-2.0
95
main
210
module AArch64 module Instructions # WFE -- A64 # Wait For Event # WFE class WFE < Instruction def encode _ 0b1101010100_0_00_011_0010_0000_010_11111 end end end end
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/xaflag.rb
Ruby
apache-2.0
95
main
278
module AArch64 module Instructions # XAFLAG -- A64 # Convert floating-point condition flags from external format to Arm format # XAFLAG class XAFLAG < Instruction def encode _ 0b1101010100_0_00_000_0100_0000_001_11111 end end end end
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/cls_int.rb
Ruby
apache-2.0
95
main
590
module AArch64 module Instructions # CLS -- A64 # Count Leading Sign bits # CLS <Wd>, <Wn> # CLS <Xd>, <Xn> class CLS_int < Instruction def initialize rd, rn, sf @rd = check_mask(rd, 0x1f) @rn = check_mask(rn, 0x1f) @sf = check_mask(sf, 0x01) end def en...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/ldrh_imm.rb
Ruby
apache-2.0
95
main
812
module AArch64 module Instructions # LDRH (immediate) -- A64 # Load Register Halfword (immediate) # LDRH <Wt>, [<Xn|SP>], #<simm> # LDRH <Wt>, [<Xn|SP>, #<simm>]! # LDRH <Wt>, [<Xn|SP>{, #<pimm>}] class LDRH_imm < Instruction def initialize rt, rn, imm9, option @rt = check...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/bra.rb
Ruby
apache-2.0
95
main
735
module AArch64 module Instructions # BRAA, BRAAZ, BRAB, BRABZ -- A64 # Branch to Register, with pointer authentication # BRAAZ <Xn> # BRAA <Xn>, <Xm|SP> # BRABZ <Xn> # BRAB <Xn>, <Xm|SP> class BRA < Instruction def initialize rn, rm, z, m @rn = check_mask(rn, 0x1f) ...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/sdiv.rb
Ruby
apache-2.0
95
main
663
module AArch64 module Instructions # SDIV -- A64 # Signed Divide # SDIV <Wd>, <Wn>, <Wm> # SDIV <Xd>, <Xn>, <Xm> class SDIV < Instruction def initialize rd, rn, rm, sf @rd = check_mask(rd, 0x1f) @rn = check_mask(rn, 0x1f) @rm = check_mask(rm, 0x1f) @sf = che...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/strb_imm.rb
Ruby
apache-2.0
95
main
786
module AArch64 module Instructions # STRB (immediate) -- A64 # Store Register Byte (immediate) # STRB <Wt>, [<Xn|SP>], #<simm> # STRB <Wt>, [<Xn|SP>, #<simm>]! # STRB <Wt>, [<Xn|SP>{, #<pimm>}] class STRB_imm < Instruction def initialize rt, rn, imm9, opt @rt = check_mask(rt...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/sbfm.rb
Ruby
apache-2.0
95
main
832
module AArch64 module Instructions # SBFM -- A64 # Signed Bitfield Move # SBFM <Wd>, <Wn>, #<immr>, #<imms> # SBFM <Xd>, <Xn>, #<immr>, #<imms> class SBFM < Instruction def initialize d, n, immr, imms, sf @rd = check_mask(d, 0x1f) @rn = check_mask(n, 0x1f) @immr...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/sevl.rb
Ruby
apache-2.0
95
main
215
module AArch64 module Instructions # SEVL -- A64 # Send Event Local # SEVL class SEVL < Instruction def encode _ 0b1101010100_0_00_011_0010_0000_101_11111 end end end end
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/movn.rb
Ruby
apache-2.0
95
main
718
module AArch64 module Instructions # MOVN -- A64 # Move wide with NOT # MOVN <Wd>, #<imm>{, LSL #<shift>} # MOVN <Xd>, #<imm>{, LSL #<shift>} class MOVN < Instruction def initialize rd, imm16, hw, sf @rd = check_mask(rd, 0x1f) @imm16 = check_mask(imm16, 0xffff) @...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/lsrv.rb
Ruby
apache-2.0
95
main
678
module AArch64 module Instructions # LSRV -- A64 # Logical Shift Right Variable # LSRV <Wd>, <Wn>, <Wm> # LSRV <Xd>, <Xn>, <Xm> class LSRV < Instruction def initialize rd, rn, rm, sf @rd = check_mask(rd, 0x1f) @rn = check_mask(rn, 0x1f) @rm = check_mask(rm, 0x1f) ...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/extr.rb
Ruby
apache-2.0
95
main
807
module AArch64 module Instructions # EXTR -- A64 # Extract register # EXTR <Wd>, <Wn>, <Wm>, #<lsb> # EXTR <Xd>, <Xn>, <Xm>, #<lsb> class EXTR < Instruction def initialize rd, rn, rm, lsb, sf @rd = check_mask(rd, 0x1f) @rn = check_mask(rn, 0x1f) @rm = check_mask(...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/dmb.rb
Ruby
apache-2.0
95
main
417
module AArch64 module Instructions # DMB -- A64 # Data Memory Barrier # DMB <option>|#<imm> class DMB < Instruction def initialize imm @imm = check_mask(imm, 0x0f) end def encode _ DMB(@imm) end private def DMB crm insn = 0b1101010100_0_0...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/stnp_gen.rb
Ruby
apache-2.0
95
main
850
module AArch64 module Instructions # STNP -- A64 # Store Pair of Registers, with non-temporal hint # STNP <Wt1>, <Wt2>, [<Xn|SP>{, #<imm>}] # STNP <Xt1>, <Xt2>, [<Xn|SP>{, #<imm>}] class STNP_gen < Instruction def initialize rt, rt2, rn, imm7, opc @rt = check_mask(rt, 0x1f) ...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/ldclrb.rb
Ruby
apache-2.0
95
main
980
module AArch64 module Instructions # LDCLRB, LDCLRAB, LDCLRALB, LDCLRLB -- A64 # Atomic bit clear on byte in memory # LDCLRAB <Ws>, <Wt>, [<Xn|SP>] # LDCLRALB <Ws>, <Wt>, [<Xn|SP>] # LDCLRB <Ws>, <Wt>, [<Xn|SP>] # LDCLRLB <Ws>, <Wt>, [<Xn|SP>] class LDCLRB < Instruction def initi...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/dcps.rb
Ruby
apache-2.0
95
main
499
module AArch64 module Instructions # DCPS1 -- A64 # Debug Change PE State to EL1. # DCPS1 {#<imm>} class DCPS < Instruction def initialize imm, ll @imm = check_mask(imm, 0xffff) @ll = check_mask(ll, 0x03) end def encode _ DCPS(@imm, @ll) end pr...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/ldset.rb
Ruby
apache-2.0
95
main
1,125
module AArch64 module Instructions # LDSET, LDSETA, LDSETAL, LDSETL -- A64 # Atomic bit set on word or doubleword in memory # LDSET <Ws>, <Wt>, [<Xn|SP>] # LDSETA <Ws>, <Wt>, [<Xn|SP>] # LDSETAL <Ws>, <Wt>, [<Xn|SP>] # LDSETL <Ws>, <Wt>, [<Xn|SP>] # LDSET <Xs>, <Xt>, [<Xn|SP>] # L...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/ldsmin.rb
Ruby
apache-2.0
95
main
1,147
module AArch64 module Instructions # LDSMIN, LDSMINA, LDSMINAL, LDSMINL -- A64 # Atomic signed minimum on word or doubleword in memory # LDSMIN <Ws>, <Wt>, [<Xn|SP>] # LDSMINA <Ws>, <Wt>, [<Xn|SP>] # LDSMINAL <Ws>, <Wt>, [<Xn|SP>] # LDSMINL <Ws>, <Wt>, [<Xn|SP>] # LDSMIN <Xs>, <Xt>, [...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/ldsmaxh.rb
Ruby
apache-2.0
95
main
901
module AArch64 module Instructions # LDSMAXH, LDSMAXAH, LDSMAXALH, LDSMAXLH -- A64 # Atomic signed maximum on halfword in memory # LDSMAXAH <Ws>, <Wt>, [<Xn|SP>] # LDSMAXALH <Ws>, <Wt>, [<Xn|SP>] # LDSMAXH <Ws>, <Wt>, [<Xn|SP>] # LDSMAXLH <Ws>, <Wt>, [<Xn|SP>] class LDSMAXH < Instructi...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/stp_gen.rb
Ruby
apache-2.0
95
main
1,105
module AArch64 module Instructions # STP -- A64 # Store Pair of Registers # STP <Wt1>, <Wt2>, [<Xn|SP>], #<imm> # STP <Xt1>, <Xt2>, [<Xn|SP>], #<imm> # STP <Wt1>, <Wt2>, [<Xn|SP>, #<imm>]! # STP <Xt1>, <Xt2>, [<Xn|SP>, #<imm>]! # STP <Wt1>, <Wt2>, [<Xn|SP>{, #<imm>}] # STP <Xt1>,...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/wfit.rb
Ruby
apache-2.0
95
main
405
module AArch64 module Instructions # WFIT -- A64 # Wait For Interrupt with Timeout # WFIT <Xt> class WFIT < Instruction def initialize rd @rd = check_mask(rd, 0x1f) end def encode _ WFIT(@rd) end private def WFIT rd insn = 0b1101010100000...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/autda.rb
Ruby
apache-2.0
95
main
608
module AArch64 module Instructions # AUTDA, AUTDZA -- A64 # Authenticate Data address, using key A # AUTDA <Xd>, <Xn|SP> # AUTDZA <Xd> class AUTDA < Instruction def initialize z, rd, rn @z = check_mask(z, 0x01) @rd = check_mask(rd, 0x1f) @rn = check_mask(rn, 0x1f) ...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/stlrb.rb
Ruby
apache-2.0
95
main
504
module AArch64 module Instructions # STLRB -- A64 # Store-Release Register Byte # STLRB <Wt>, [<Xn|SP>{,#0}] class STLRB < Instruction def initialize rt, rn @rt = check_mask(rt, 0x1f) @rn = check_mask(rn, 0x1f) end def encode _ STLRB(@rn, @rt) end ...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/msr_imm.rb
Ruby
apache-2.0
95
main
632
module AArch64 module Instructions # MSR (immediate) -- A64 # Move immediate value to Special Register # MSR <pstatefield>, #<imm> class MSR_imm < Instruction def initialize op1, crm, op2 @op1 = check_mask(op1, 0x07) @crm = check_mask(crm, 0x0f) @op2 = check_mask(op2, 0x...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/ldxr.rb
Ruby
apache-2.0
95
main
621
module AArch64 module Instructions # LDXR -- A64 # Load Exclusive Register # LDXR <Wt>, [<Xn|SP>{,#0}] # LDXR <Xt>, [<Xn|SP>{,#0}] class LDXR < Instruction def initialize rt, rn, size @rt = check_mask(rt, 0x1f) @rn = check_mask(rn, 0x1f) @size = check_mask(size,...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/ldgm.rb
Ruby
apache-2.0
95
main
491
module AArch64 module Instructions # LDGM -- A64 # Load Tag Multiple # LDGM <Xt>, [<Xn|SP>] class LDGM < Instruction def initialize xt, xn @xt = check_mask(xt, 0x1f) @xn = check_mask(xn, 0x1f) end def encode _ LDGM(@xn, @xt) end private d...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/ldsminb.rb
Ruby
apache-2.0
95
main
897
module AArch64 module Instructions # LDSMINB, LDSMINAB, LDSMINALB, LDSMINLB -- A64 # Atomic signed minimum on byte in memory # LDSMINAB <Ws>, <Wt>, [<Xn|SP>] # LDSMINALB <Ws>, <Wt>, [<Xn|SP>] # LDSMINB <Ws>, <Wt>, [<Xn|SP>] # LDSMINLB <Ws>, <Wt>, [<Xn|SP>] class LDSMINB < Instruction ...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/ldursh.rb
Ruby
apache-2.0
95
main
747
module AArch64 module Instructions # LDURSH -- A64 # Load Register Signed Halfword (unscaled) # LDURSH <Wt>, [<Xn|SP>{, #<simm>}] # LDURSH <Xt>, [<Xn|SP>{, #<simm>}] class LDURSH < Instruction def initialize rt, rn, imm9, opc @rt = check_mask(rt, 0x1f) @rn = check_mask(...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/br.rb
Ruby
apache-2.0
95
main
395
module AArch64 module Instructions # BR -- A64 # Branch to Register # BR <Xn> class BR < Instruction def initialize rn @rn = check_mask(rn, 0x1f) end def encode _ BR(@rn) end private def BR rn insn = 0b1101011_0_0_00_11111_0000_0_0_00000_...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/ldpsw.rb
Ruby
apache-2.0
95
main
880
module AArch64 module Instructions # LDPSW -- A64 # Load Pair of Registers Signed Word # LDPSW <Xt1>, <Xt2>, [<Xn|SP>], #<imm> # LDPSW <Xt1>, <Xt2>, [<Xn|SP>, #<imm>]! # LDPSW <Xt1>, <Xt2>, [<Xn|SP>{, #<imm>}] class LDPSW < Instruction def initialize rt, rt2, rn, imm7, mode @r...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/ldrsb_reg.rb
Ruby
apache-2.0
95
main
1,084
module AArch64 module Instructions # LDRSB (register) -- A64 # Load Register Signed Byte (register) # LDRSB <Wt>, [<Xn|SP>, (<Wm>|<Xm>), <extend> {<amount>}] # LDRSB <Wt>, [<Xn|SP>, <Xm>{, LSL <amount>}] # LDRSB <Xt>, [<Xn|SP>, (<Wm>|<Xm>), <extend> {<amount>}] # LDRSB <Xt>, [<Xn|SP>, <Xm>...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/sttr.rb
Ruby
apache-2.0
95
main
729
module AArch64 module Instructions # STTR -- A64 # Store Register (unprivileged) # STTR <Wt>, [<Xn|SP>{, #<simm>}] # STTR <Xt>, [<Xn|SP>{, #<simm>}] class STTR < Instruction def initialize rt, rn, imm9, size @rt = check_mask(rt, 0x1f) @rn = check_mask(rn, 0x1f) ...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/bics.rb
Ruby
apache-2.0
95
main
962
module AArch64 module Instructions # BICS (shifted register) -- A64 # Bitwise Bit Clear (shifted register), setting flags # BICS <Wd>, <Wn>, <Wm>{, <shift> #<amount>} # BICS <Xd>, <Xn>, <Xm>{, <shift> #<amount>} class BICS < Instruction def initialize d, n, m, shift, amount, sf @d ...
github
tenderlove/aarch64
https://github.com/tenderlove/aarch64
lib/aarch64/instructions/smsubl.rb
Ruby
apache-2.0
95
main
667
module AArch64 module Instructions # SMSUBL -- A64 # Signed Multiply-Subtract Long # SMSUBL <Xd>, <Wn>, <Wm>, <Xa> class SMSUBL < Instruction def initialize rd, rn, rm, ra @rd = check_mask(rd, 0x1f) @rn = check_mask(rn, 0x1f) @rm = check_mask(rm, 0x1f) @ra = chec...