adjusted module name accordingly
This commit is contained in:
parent
b100956909
commit
b196810e89
@ -1,4 +1,4 @@
|
||||
module Vm
|
||||
module Register
|
||||
# Base class for anything that we can assemble
|
||||
|
||||
# Derived classes include instructions and constants(data)
|
||||
|
@ -1,5 +1,5 @@
|
||||
require_relative "code"
|
||||
module Vm
|
||||
module Register
|
||||
|
||||
# Because the idea of what one instruction does, does not always map one to one to real machine
|
||||
# instructions, and instruction may link to another instruction thus creating an arbitrary list
|
||||
|
@ -1,4 +1,4 @@
|
||||
module Vm
|
||||
module Register
|
||||
class Integer < Word
|
||||
# needs to be here as Word's constructor is private (to make it abstract)
|
||||
def initialize reg
|
||||
|
@ -1,4 +1,4 @@
|
||||
module Vm
|
||||
module Register
|
||||
class Mystery < Word
|
||||
# needs to be here as Word's constructor is private (to make it abstract)
|
||||
def initilize reg
|
||||
|
@ -1,4 +1,4 @@
|
||||
module Vm
|
||||
module Register
|
||||
# Passes, or BlockPasses, could have been procs that just get each block passed.
|
||||
# Instead they are proper objects in case they want to save state.
|
||||
# The idea is
|
||||
|
@ -1,4 +1,4 @@
|
||||
module Vm
|
||||
module Register
|
||||
class Reference < Word
|
||||
# needs to be here as Word's constructor is private (to make it abstract)
|
||||
def initialize reg , clazz = nil
|
||||
|
@ -1,4 +1,4 @@
|
||||
module Vm
|
||||
module Register
|
||||
|
||||
# Our virtual c-machine has a number of registers of a given size and uses a stack
|
||||
# So much so standard
|
||||
|
@ -1,4 +1,4 @@
|
||||
module Vm
|
||||
module Register
|
||||
|
||||
# RegisterReference is not the name for a register, "only" for a certain use of it.
|
||||
# In a way it is like a variable name, a storage location. The location is a register off course,
|
||||
|
Loading…
Reference in New Issue
Block a user