annotate paper/src/cbc_example_test.s @ 111:4642d2f215d2

update
author anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Sat, 06 Feb 2021 15:42:26 +0900
parents eaa7a127027b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
63
eaa7a127027b add asm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 codegear1:
eaa7a127027b add asm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 .LFB0:
eaa7a127027b add asm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 .cfi_startproc
eaa7a127027b add asm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 pushq %rbp
eaa7a127027b add asm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 .cfi_def_cfa_offset 16
eaa7a127027b add asm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 .cfi_offset 6, -16
eaa7a127027b add asm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 movq %rsp, %rbp
eaa7a127027b add asm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 .cfi_def_cfa_register 6
eaa7a127027b add asm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 movl %edi, %eax
eaa7a127027b add asm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 movq %rsi, %rcx
eaa7a127027b add asm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 movq %rcx, %rdx
eaa7a127027b add asm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 movq %rax, -32(%rbp)
eaa7a127027b add asm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 movq %rdx, -24(%rbp)
eaa7a127027b add asm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 movl -32(%rbp), %eax
eaa7a127027b add asm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 addl $1, %eax
eaa7a127027b add asm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 movl %eax, -16(%rbp)
eaa7a127027b add asm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 movq -24(%rbp), %rax
eaa7a127027b add asm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 movq %rax, -8(%rbp)
eaa7a127027b add asm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 movl -16(%rbp), %edx
eaa7a127027b add asm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
20 movq -8(%rbp), %rax
eaa7a127027b add asm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
21 movl %edx, %edi
eaa7a127027b add asm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
22 movq %rax, %rsi
eaa7a127027b add asm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
23 popq %rbp
eaa7a127027b add asm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
24 .cfi_def_cfa 7, 8
eaa7a127027b add asm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
25 jmp codegear2
eaa7a127027b add asm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 .cfi_endproc
eaa7a127027b add asm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
27 .LFE0:
eaa7a127027b add asm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
28 .size codegear1, .-codegear1
eaa7a127027b add asm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
29 .section .rodata
eaa7a127027b add asm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
30 .LC0:
eaa7a127027b add asm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
31 .string "Hello"
eaa7a127027b add asm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
32 .text
eaa7a127027b add asm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
33 .globl codegear2
eaa7a127027b add asm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
34 .type codegear2, @function