- (emit "movq $0x2000004, %rax")) ; syscall 4 (write)
- ('linux
- (emit "mov %rbx, %rsi") ; string addr
- (emit "mov %rcx, %rdx") ; num bytes
- (emit "mov $1, %rax") ; file handle (stdout)
- (emit "mov $1, %rdi"))) ; syscall 1 (write)
+ (case target
+ ('darwin (emit "mov $0x2000004, %rax")) ; syscall 4 (write)
+ ('linux (emit "mov $1, %rax"))) ; syscall 1 (write)