Skip to content

Instantly share code, notes, and snippets.

@bakkdoor
Created November 25, 2010 18:16
Show Gist options
  • Save bakkdoor/715753 to your computer and use it in GitHub Desktop.
Save bakkdoor/715753 to your computer and use it in GitHub Desktop.
# asm.rb
def hello(name)
Rubinius.asm(name) do |name|
push :self
run name
string_dup
push_literal "hello, "
string_dup
string_append
send :p, 1, true
end
end
hello "world"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment