blob: 2a624a2e8572b7f913f7efea023e47a09db2230f (
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
|
/; _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"
;/
/; _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
;asm "mov $10, %rax"
;asm "call _alloc"
;asm "call _delete"
;asm "mov $0, %rax"
;/
|