4 Printing
| (require a86/printer) | package: a86 |
procedure
(asm-display is) → void?
is : (listof instruction?)
Prints an a86 program to the current output port in Intel syntax.
Examples
> (asm-display (prog (Global 'entry) (Label 'entry) (Mov 'rax 42) (Ret)))
.intel_syntax noprefix
.text
.global entry
entry:
mov rax, 42
ret
procedure
(asm-string is) → string?
is : (listof instruction?)
Converts an a86 program to a string in Intel syntax.
Examples
> (asm-string (prog (Global 'entry) (Label 'entry) (Mov 'rax 42) (Ret))) " .intel_syntax noprefix\n .text\n .global entry\nentry:\n mov rax, 42\n ret\n"