Method: Fisk#asm
- Defined in:
- lib/fisk.rb
#asm(buf = StringIO.new(''.b), metadata: {}, &block) ⇒ Object
Instance eval’s a given block and writes encoded instructions to buf. For example:
fisk = Fisk.new
fisk.asm do
mov r9, imm64(32)
end
780 781 782 783 784 |
# File 'lib/fisk.rb', line 780 def asm buf = StringIO.new(''.b), metadata: {}, &block instance_eval(&block) write_to buf, metadata: buf end |