Sha256: 2d181e18d46a96efb4589b9282a5d83c214ea82ea8538839b7c78eb0c3fcbc72
Contents?: true
Size: 455 Bytes
Versions: 5
Compression:
Stored size: 455 Bytes
Contents
require "rips/instructions/instruction" module Rips module Instructions class Li < Instruction attr_reader :variables, :length # @variables: types of instruction's variables # @length: length in bits for each variable def initialize super("li",Formats::CFormat.new(0b1010)) @variables = [Variables::Register.new, Variables::Inmediate.new] @length = {r2:4, r1:8, op:4} end end end end
Version data entries
5 entries across 5 versions & 1 rubygems