Mercurial > hg > Papers > 2021 > anatofuz-master
diff paper/src/cbc_example_test.s @ 63:eaa7a127027b
add asm
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 03 Feb 2021 13:30:03 +0900 (2021-02-03) |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/paper/src/cbc_example_test.s Wed Feb 03 13:30:03 2021 +0900 @@ -0,0 +1,34 @@ +codegear1: +.LFB0: + .cfi_startproc + pushq %rbp + .cfi_def_cfa_offset 16 + .cfi_offset 6, -16 + movq %rsp, %rbp + .cfi_def_cfa_register 6 + movl %edi, %eax + movq %rsi, %rcx + movq %rcx, %rdx + movq %rax, -32(%rbp) + movq %rdx, -24(%rbp) + movl -32(%rbp), %eax + addl $1, %eax + movl %eax, -16(%rbp) + movq -24(%rbp), %rax + movq %rax, -8(%rbp) + movl -16(%rbp), %edx + movq -8(%rbp), %rax + movl %edx, %edi + movq %rax, %rsi + popq %rbp + .cfi_def_cfa 7, 8 + jmp codegear2 + .cfi_endproc +.LFE0: + .size codegear1, .-codegear1 + .section .rodata +.LC0: + .string "Hello" + .text + .globl codegear2 + .type codegear2, @function