Sha256: f9e6f68a4e209eb67e5e6d93e8c1c1558e5b8a835b51cd8ad2df0100313f3f78
Contents?: true
Size: 467 Bytes
Versions: 7
Compression:
Stored size: 467 Bytes
Contents
# Copyright 2024 Kyrylo Shyshko # Licensed under the Apache License, Version 2.0. See LICENSE file for details. module Kompiler class Architecture @@instructions = [] @@registers = [] def self.set_arch instructions, registers @@instructions = instructions @@registers = registers end def self.load_arch(arch_name) require "kompiler/arch/#{arch_name.downcase}/load" end def self.instructions @@instructions end def self.registers @@registers end end end
Version data entries
7 entries across 7 versions & 1 rubygems