summaryrefslogtreecommitdiff
path: root/tnslc/dummy.tnsl
blob: 003e428b4434c42bd202d7bea8b0aae6eac08383 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/; raw _alloc
    ;asm "mov %rax, %rdi"
    ;asm "push %r8"
    ;asm "push %r9"
    ;asm "push %r10"
    ;asm "mov $0, %r10"
    ;asm "call malloc"
    ;asm "pop %r10"
    ;asm "pop %r9"
    ;asm "pop %r8"
;/

/; raw _delete
    ;asm "mov %rax, %rdi"
    ;asm "push %r9"
    ;asm "push %r10"
    ;asm "mov $0, %r10"
    ;asm "call free"
    ;asm "pop %r10"
    ;asm "pop %r9"
;/

/; main [int]
    ;asm "mov $10, %rax"
    ;asm "call _alloc"
    ;asm "call _delete"
    ;asm "mov $0, %rax"
;/