More rename cleanp
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
module Mom
|
||||
module SlotMachine
|
||||
class Comparison < Macro
|
||||
attr_reader :operator
|
||||
def initialize(name , operator)
|
||||
|
@ -1,4 +1,4 @@
|
||||
module Mom
|
||||
module SlotMachine
|
||||
class Div10 < Macro
|
||||
def to_risc(compiler)
|
||||
s = "div_10 "
|
||||
|
@ -1,4 +1,4 @@
|
||||
module Mom
|
||||
module SlotMachine
|
||||
class Div4 < Macro
|
||||
def to_risc(compiler)
|
||||
builder = compiler.builder(compiler.source)
|
||||
|
@ -1,4 +1,4 @@
|
||||
module Mom
|
||||
module SlotMachine
|
||||
class Exit < Macro
|
||||
def to_risc(compiler)
|
||||
builder = compiler.builder(compiler.source)
|
||||
|
@ -1,4 +1,4 @@
|
||||
module Mom
|
||||
module SlotMachine
|
||||
class GetInternalByte < Macro
|
||||
def to_risc(compiler)
|
||||
builder = compiler.builder(compiler.source)
|
||||
|
@ -1,4 +1,4 @@
|
||||
module Mom
|
||||
module SlotMachine
|
||||
class GetInternalWord < Macro
|
||||
def to_risc(compiler)
|
||||
compiler.builder(compiler.source).build do
|
||||
|
@ -1,4 +1,4 @@
|
||||
module Mom
|
||||
module SlotMachine
|
||||
# Init "method" is the first thing that happens in the machine
|
||||
# There is an inital jump to it, but that's it, no setup, no nothing
|
||||
#
|
||||
@ -20,7 +20,7 @@ module Mom
|
||||
end
|
||||
builder.reset_names
|
||||
# Set up the call to main, with space as receiver
|
||||
Mom::MessageSetup.new(main).build_with( builder )
|
||||
SlotMachine::MessageSetup.new(main).build_with( builder )
|
||||
builder.build do
|
||||
message << message[:next_message]
|
||||
space? << Parfait.object_space
|
||||
|
@ -1,4 +1,4 @@
|
||||
module Mom
|
||||
module SlotMachine
|
||||
class Macro < Instruction
|
||||
|
||||
def to_s
|
||||
|
@ -1,4 +1,4 @@
|
||||
module Mom
|
||||
module SlotMachine
|
||||
class MethodMissing < Macro
|
||||
attr_reader :name
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
|
||||
module Mom
|
||||
module SlotMachine
|
||||
end
|
||||
|
@ -1,4 +1,4 @@
|
||||
module Mom
|
||||
module SlotMachine
|
||||
class IntOperator < Macro
|
||||
attr_reader :operator
|
||||
def initialize(name , operator)
|
||||
|
@ -1,4 +1,4 @@
|
||||
module Mom
|
||||
module SlotMachine
|
||||
class Putstring < Macro
|
||||
def to_risc(compiler)
|
||||
builder = compiler.builder(compiler.source)
|
||||
@ -7,7 +7,7 @@ module Mom
|
||||
word! << message[:receiver]
|
||||
integer! << word[Parfait::Word.get_length_index]
|
||||
end
|
||||
Mom::Macro.emit_syscall( builder , :putstring )
|
||||
SlotMachine::Macro.emit_syscall( builder , :putstring )
|
||||
compiler
|
||||
end
|
||||
end
|
||||
|
@ -1,4 +1,4 @@
|
||||
module Mom
|
||||
module SlotMachine
|
||||
class SetInternalByte < Macro
|
||||
def to_risc(compiler)
|
||||
compiler.builder(compiler.source).build do
|
||||
|
@ -1,4 +1,4 @@
|
||||
module Mom
|
||||
module SlotMachine
|
||||
class SetInternalWord < Macro
|
||||
def to_risc(compiler)
|
||||
compiler.builder(compiler.source).build do
|
||||
|
Reference in New Issue
Block a user