2015-07-01 20:45:41 +02:00
|
|
|
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 , [] )
|
2015-10-18 16:20:19 +02:00
|
|
|
function.source.add_code Register.get_slot( function , :message , :receiver , :new_message )
|
2015-07-01 20:45:41 +02:00
|
|
|
Kernel.emit_syscall( function , :putstring )
|
|
|
|
function
|
|
|
|
end
|
|
|
|
end
|
|
|
|
extend ClassMethods
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|