rubyx/lib/register/builtin/word.rb

16 lines
431 B
Ruby
Raw Normal View History

module Register
module Builtin
module Word
module ClassMethods
def putstring context
2015-10-22 17:16:29 +02:00
function = MethodSource.create_method(:Word,:Integer , :putstring , [] )
function.source.add_code Register.get_slot( function , :message , :receiver , :new_message )
Kernel.emit_syscall( function , :putstring )
function
end
end
extend ClassMethods
end
end
end