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

Version Path
kompiler-0.2.0 lib/kompiler/architecture.rb
kompiler-0.2.0.pre.2 lib/kompiler/architecture.rb
kompiler-0.2.0.pre.1 lib/kompiler/architecture.rb
kompiler-0.1.2 lib/kompiler/architecture.rb
kompiler-0.1.1 lib/kompiler/architecture.rb
kompiler-0.1.0 lib/kompiler/architecture.rb
kompiler-0.0.0 lib/kompiler/architecture.rb