cons example

This commit is contained in:
2026-05-18 10:12:55 -06:00
parent afc68e2a55
commit f5fe6b5b20
6 changed files with 34 additions and 1 deletions

18
example/cons.s Normal file
View File

@@ -0,0 +1,18 @@
.text
.globl main
main:
pushq %rbp
movq %rsp, %rbp
movl $16, %edi
callq GC_malloc
movq %rax, %rdi
movq $18, (%rdi)
movq $22, 8(%rdi)
callq scm_write
leave
ret
.type main, @function
.size main, .-main
/* end function main */
.section .note.GNU-stack,"",@progbits