X-Git-Url: https://git.lukelau.me/?a=blobdiff_plain;f=codegen.scm;h=c73677325f899e064200b678182e6290d9fe6b2d;hb=6cad928374127b2fae65d7023fd31a725f4bd1d9;hp=00e01296af20661539f8fda3d882c6fa39547092;hpb=61a99f4a9f1d169849ffc2483634a391d3b16a90;p=scheme.git diff --git a/codegen.scm b/codegen.scm index 00e0129..c736773 100644 --- a/codegen.scm +++ b/codegen.scm @@ -46,9 +46,9 @@ (codegen-expr a si env) (emit "movq %rax, ~a(%rbp)" si) (codegen-expr b (- si wordsize) env) - (emit "subq ~a(%rbp), %rax" si) - (emit "not %rax") - (emit "andq $1, %rax")) + (emit "## ~a = ~b" a b) + (emit "cmpq ~a(%rbp), %rax" si) + (emit "sete %al")) ; 'write file handle addr-string num-bytes