X-Git-Url: https://git.lukelau.me/?p=scheme.git;a=blobdiff_plain;f=codegen.scm;h=c73677325f899e064200b678182e6290d9fe6b2d;hp=00e01296af20661539f8fda3d882c6fa39547092;hb=6cad928374127b2fae65d7023fd31a725f4bd1d9;hpb=4a6161c0db78e4739433377861c0fa89b92619be 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