Advertisement
UellingtonDamasceno

ex1-arm-v11

Aug 24th, 2020
1,331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     .cpu arm1136jf-s
  2.     .eabi_attribute 20, 1
  3.     .eabi_attribute 21, 1
  4.     .eabi_attribute 23, 3
  5.     .eabi_attribute 24, 1
  6.     .eabi_attribute 25, 1
  7.     .eabi_attribute 26, 2
  8.     .eabi_attribute 30, 6
  9.     .eabi_attribute 34, 1
  10.     .eabi_attribute 18, 4
  11.     .file   "ex1.c"
  12.     .text
  13.     .align  2
  14.     .global main
  15.     .arch armv6j
  16.     .syntax unified
  17.     .arm
  18.     .fpu softvfp
  19.     .type   main, %function
  20. main:
  21.     @ args = 0, pretend = 0, frame = 16
  22.     @ frame_needed = 1, uses_anonymous_args = 0
  23.     @ link register save eliminated.
  24.     str fp, [sp, #-4]!
  25.     add fp, sp, #0
  26.     sub sp, sp, #20
  27.     str r0, [fp, #-16]
  28.     str r1, [fp, #-20]
  29.     mov r3, #0
  30.     str r3, [fp, #-8]
  31.     ldr r3, [fp, #-8]
  32.     add r3, r3, #1
  33.     str r3, [fp, #-8]
  34.     mov r3, #0
  35.     mov r0, r3
  36.     add sp, fp, #0
  37.     @ sp needed
  38.     ldr fp, [sp], #4
  39.     bx  lr
  40.     .size   main, .-main
  41.     .ident  "GCC: (Ubuntu/Linaro 8.4.0-1ubuntu1~18.04) 8.4.0"
  42.     .section    .note.GNU-stack,"",%progbits
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement