Skip to content

Instantly share code, notes, and snippets.

@pepijndevos
Forked from anonymous/devOS.s
Created January 3, 2017 12:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pepijndevos/716c2dd77c760a56c12957bce27c9cf6 to your computer and use it in GitHub Desktop.
Save pepijndevos/716c2dd77c760a56c12957bce27c9cf6 to your computer and use it in GitHub Desktop.
devos.o: file format elf32-littlearm
Disassembly of section .text:
c0008000 <_start>:
c0008000: e3a0d902 mov sp, #32768 ; 0x8000
c0008004: e59f4030 ldr r4, [pc, #48] ; c000803c <halt+0x8>
c0008008: e59f9030 ldr r9, [pc, #48] ; c0008040 <halt+0xc>
c000800c: e3a05000 mov r5, #0
c0008010: e3a06000 mov r6, #0
c0008014: e3a07000 mov r7, #0
c0008018: e3a08000 mov r8, #0
c000801c: ea000000 b c0008024 <_start+0x24>
c0008020: e8a401e0 stmia r4!, {r5, r6, r7, r8}
c0008024: e1540009 cmp r4, r9
c0008028: 3afffffc bcc c0008020 <_start+0x20>
c000802c: e59f3010 ldr r3, [pc, #16] ; c0008044 <halt+0x10>
c0008030: e12fff33 blx r3
c0008034 <halt>:
c0008034: e320f002 wfe
c0008038: eafffffd b c0008034 <halt>
c000803c: c00080c2 .word 0xc00080c2
c0008040: c00080c2 .word 0xc00080c2
c0008044: c0008049 .word 0xc0008049
Disassembly of section .text.rust_main:
c0008048 <rust_main>:
c0008048: b580 push {r7, lr}
c000804a: af00 add r7, sp, #0
c000804c: b082 sub sp, #8
c000804e: e7ff b.n c0008050 <rust_main+0x8>
c0008050: 2076 movs r0, #118 ; 0x76
c0008052: f000 f803 bl c000805c <_ZN5devos7putchar17hce2e9d607288d19bE>
c0008056: e7ff b.n c0008058 <rust_main+0x10>
c0008058: b002 add sp, #8
c000805a: bd80 pop {r7, pc}
Disassembly of section .text._ZN5devos7putchar17hce2e9d607288d19bE:
c000805c <_ZN5devos7putchar17hce2e9d607288d19bE>:
c000805c: b084 sub sp, #16
c000805e: b401 push {r0}
c0008060: bc02 pop {r1}
c0008062: 9003 str r0, [sp, #12]
c0008064: 9100 str r1, [sp, #0]
c0008066: e7ff b.n c0008068 <_ZN5devos7putchar17hce2e9d607288d19bE+0xc>
c0008068: 9803 ldr r0, [sp, #12]
c000806a: 9001 str r0, [sp, #4]
c000806c: 4901 ldr r1, [pc, #4] ; (c0008074 <_ZN5devos7putchar17hce2e9d607288d19bE+0x18>)
c000806e: 7008 strb r0, [r1, #0]
c0008070: b004 add sp, #16
c0008072: 4770 bx lr
c0008074: 01d0c000 .word 0x01d0c000
Disassembly of section .text.rust_begin_unwind:
c0008078 <rust_begin_unwind>:
c0008078: b081 sub sp, #4
c000807a: e7ff b.n c000807c <rust_begin_unwind+0x4>
c000807c: e7ff b.n c000807e <rust_begin_unwind+0x6>
c000807e: e7fe b.n c000807e <rust_begin_unwind+0x6>
Disassembly of section .text.__aeabi_unwind_cpp_pr0:
c0008080 <__aeabi_unwind_cpp_pr0>:
c0008080: b081 sub sp, #4
c0008082: e7ff b.n c0008084 <__aeabi_unwind_cpp_pr0+0x4>
c0008084: b001 add sp, #4
c0008086: 4770 bx lr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment