ARM GAS /tmp/ccwjAWu8.s page 1 1 .cpu cortex-m4 2 .eabi_attribute 27, 1 3 .eabi_attribute 28, 1 4 .eabi_attribute 20, 1 5 .eabi_attribute 21, 1 6 .eabi_attribute 23, 3 7 .eabi_attribute 24, 1 8 .eabi_attribute 25, 1 9 .eabi_attribute 26, 1 10 .eabi_attribute 30, 2 11 .eabi_attribute 34, 1 12 .eabi_attribute 18, 4 13 .file "i2c_eeprom.c" 14 .text 15 .section .text.i2c_eeprom_scrivi_pagina,"ax",%progbits 16 .align 1 17 .p2align 2,,3 18 .global i2c_eeprom_scrivi_pagina 19 .arch armv7e-m 20 .syntax unified 21 .thumb 22 .thumb_func 23 .fpu fpv4-sp-d16 25 i2c_eeprom_scrivi_pagina: 26 @ args = 0, pretend = 0, frame = 0 27 @ frame_needed = 0, uses_anonymous_args = 0 28 0000 70B5 push {r4, r5, r6, lr} 29 0002 0C4C ldr r4, .L6 30 0004 84B0 sub sp, sp, #16 31 0006 0546 mov r5, r0 32 0008 0E46 mov r6, r1 33 .L2: 34 000a 6423 movs r3, #100 35 000c 0322 movs r2, #3 36 000e A021 movs r1, #160 37 0010 2046 mov r0, r4 38 0012 FFF7FEFF bl HAL_I2C_IsDeviceReady 39 0016 0028 cmp r0, #0 40 0018 F7D1 bne .L2 41 001a 6422 movs r2, #100 42 001c 2023 movs r3, #32 43 001e CDE90132 strd r3, r2, [sp, #4] 44 0022 0096 str r6, [sp] 45 0024 0223 movs r3, #2 46 0026 2A46 mov r2, r5 47 0028 A021 movs r1, #160 48 002a 0248 ldr r0, .L6 49 002c FFF7FEFF bl HAL_I2C_Mem_Write 50 0030 04B0 add sp, sp, #16 51 @ sp needed 52 0032 70BD pop {r4, r5, r6, pc} 53 .L7: 54 .align 2 55 .L6: 56 0034 00000000 .word hi2c1 58 .section .text.i2c_eeprom_leggi_pagina,"ax",%progbits 59 .align 1 ARM GAS /tmp/ccwjAWu8.s page 2 60 .p2align 2,,3 61 .global i2c_eeprom_leggi_pagina 62 .syntax unified 63 .thumb 64 .thumb_func 65 .fpu fpv4-sp-d16 67 i2c_eeprom_leggi_pagina: 68 @ args = 0, pretend = 0, frame = 0 69 @ frame_needed = 0, uses_anonymous_args = 0 70 0000 70B5 push {r4, r5, r6, lr} 71 0002 0C4C ldr r4, .L12 72 0004 84B0 sub sp, sp, #16 73 0006 0546 mov r5, r0 74 0008 0E46 mov r6, r1 75 .L9: 76 000a 6423 movs r3, #100 77 000c 0322 movs r2, #3 78 000e A021 movs r1, #160 79 0010 2046 mov r0, r4 80 0012 FFF7FEFF bl HAL_I2C_IsDeviceReady 81 0016 0028 cmp r0, #0 82 0018 F7D1 bne .L9 83 001a 6422 movs r2, #100 84 001c 2023 movs r3, #32 85 001e CDE90132 strd r3, r2, [sp, #4] 86 0022 0096 str r6, [sp] 87 0024 0123 movs r3, #1 88 0026 2A46 mov r2, r5 89 0028 A021 movs r1, #160 90 002a 0248 ldr r0, .L12 91 002c FFF7FEFF bl HAL_I2C_Mem_Read 92 0030 04B0 add sp, sp, #16 93 @ sp needed 94 0032 70BD pop {r4, r5, r6, pc} 95 .L13: 96 .align 2 97 .L12: 98 0034 00000000 .word hi2c1 100 .section .text.salva_canale,"ax",%progbits 101 .align 1 102 .p2align 2,,3 103 .global salva_canale 104 .syntax unified 105 .thumb 106 .thumb_func 107 .fpu fpv4-sp-d16 109 salva_canale: 110 @ args = 0, pretend = 0, frame = 0 111 @ frame_needed = 0, uses_anonymous_args = 0 112 0000 70B5 push {r4, r5, r6, lr} 113 0002 0D4E ldr r6, .L18 114 0004 0D4C ldr r4, .L18+4 115 0006 84B0 sub sp, sp, #16 116 0008 4501 lsls r5, r0, #5 117 000a F6B2 uxtb r6, r6 118 .L15: 119 000c 6423 movs r3, #100 ARM GAS /tmp/ccwjAWu8.s page 3 120 000e 0322 movs r2, #3 121 0010 A021 movs r1, #160 122 0012 2046 mov r0, r4 123 0014 FFF7FEFF bl HAL_I2C_IsDeviceReady 124 0018 0028 cmp r0, #0 125 001a F7D1 bne .L15 126 001c 6422 movs r2, #100 127 001e 2023 movs r3, #32 128 0020 CDE90132 strd r3, r2, [sp, #4] 129 0024 0096 str r6, [sp] 130 0026 0223 movs r3, #2 131 0028 2A46 mov r2, r5 132 002a A021 movs r1, #160 133 002c 0348 ldr r0, .L18+4 134 002e FFF7FEFF bl HAL_I2C_Mem_Write 135 0032 04B0 add sp, sp, #16 136 @ sp needed 137 0034 70BD pop {r4, r5, r6, pc} 138 .L19: 139 0036 00BF .align 2 140 .L18: 141 0038 00000000 .word canale 142 003c 00000000 .word hi2c1 144 .section .text.leggi_canale,"ax",%progbits 145 .align 1 146 .p2align 2,,3 147 .global leggi_canale 148 .syntax unified 149 .thumb 150 .thumb_func 151 .fpu fpv4-sp-d16 153 leggi_canale: 154 @ args = 0, pretend = 0, frame = 0 155 @ frame_needed = 0, uses_anonymous_args = 0 156 0000 70B5 push {r4, r5, r6, lr} 157 0002 0D4E ldr r6, .L24 158 0004 0D4C ldr r4, .L24+4 159 0006 84B0 sub sp, sp, #16 160 0008 4501 lsls r5, r0, #5 161 000a F6B2 uxtb r6, r6 162 .L21: 163 000c 6423 movs r3, #100 164 000e 0322 movs r2, #3 165 0010 A021 movs r1, #160 166 0012 2046 mov r0, r4 167 0014 FFF7FEFF bl HAL_I2C_IsDeviceReady 168 0018 0028 cmp r0, #0 169 001a F7D1 bne .L21 170 001c 6422 movs r2, #100 171 001e 2023 movs r3, #32 172 0020 CDE90132 strd r3, r2, [sp, #4] 173 0024 0096 str r6, [sp] 174 0026 0123 movs r3, #1 175 0028 2A46 mov r2, r5 176 002a A021 movs r1, #160 177 002c 0348 ldr r0, .L24+4 178 002e FFF7FEFF bl HAL_I2C_Mem_Read ARM GAS /tmp/ccwjAWu8.s page 4 179 0032 04B0 add sp, sp, #16 180 @ sp needed 181 0034 70BD pop {r4, r5, r6, pc} 182 .L25: 183 0036 00BF .align 2 184 .L24: 185 0038 00000000 .word canale 186 003c 00000000 .word hi2c1 188 .section .text.salva_stato,"ax",%progbits 189 .align 1 190 .p2align 2,,3 191 .global salva_stato 192 .syntax unified 193 .thumb 194 .thumb_func 195 .fpu fpv4-sp-d16 197 salva_stato: 198 @ args = 0, pretend = 0, frame = 0 199 @ frame_needed = 0, uses_anonymous_args = 0 200 0000 30B5 push {r4, r5, lr} 201 0002 0D4D ldr r5, .L30 202 0004 0D4C ldr r4, .L30+4 203 0006 85B0 sub sp, sp, #20 204 0008 EDB2 uxtb r5, r5 205 .L27: 206 000a 6423 movs r3, #100 207 000c 0322 movs r2, #3 208 000e A021 movs r1, #160 209 0010 2046 mov r0, r4 210 0012 FFF7FEFF bl HAL_I2C_IsDeviceReady 211 0016 0028 cmp r0, #0 212 0018 F7D1 bne .L27 213 001a 6422 movs r2, #100 214 001c 2023 movs r3, #32 215 001e CDE90132 strd r3, r2, [sp, #4] 216 0022 0095 str r5, [sp] 217 0024 0223 movs r3, #2 218 0026 4FF47262 mov r2, #3872 219 002a A021 movs r1, #160 220 002c 0348 ldr r0, .L30+4 221 002e FFF7FEFF bl HAL_I2C_Mem_Write 222 0032 05B0 add sp, sp, #20 223 @ sp needed 224 0034 30BD pop {r4, r5, pc} 225 .L31: 226 0036 00BF .align 2 227 .L30: 228 0038 00000000 .word stato 229 003c 00000000 .word hi2c1 231 .section .text.leggi_stato,"ax",%progbits 232 .align 1 233 .p2align 2,,3 234 .global leggi_stato 235 .syntax unified 236 .thumb 237 .thumb_func 238 .fpu fpv4-sp-d16 ARM GAS /tmp/ccwjAWu8.s page 5 240 leggi_stato: 241 @ args = 0, pretend = 0, frame = 0 242 @ frame_needed = 0, uses_anonymous_args = 0 243 0000 30B5 push {r4, r5, lr} 244 0002 0D4D ldr r5, .L36 245 0004 0D4C ldr r4, .L36+4 246 0006 85B0 sub sp, sp, #20 247 0008 EDB2 uxtb r5, r5 248 .L33: 249 000a 6423 movs r3, #100 250 000c 0322 movs r2, #3 251 000e A021 movs r1, #160 252 0010 2046 mov r0, r4 253 0012 FFF7FEFF bl HAL_I2C_IsDeviceReady 254 0016 0028 cmp r0, #0 255 0018 F7D1 bne .L33 256 001a 6422 movs r2, #100 257 001c 2023 movs r3, #32 258 001e CDE90132 strd r3, r2, [sp, #4] 259 0022 0095 str r5, [sp] 260 0024 0123 movs r3, #1 261 0026 4FF47262 mov r2, #3872 262 002a A021 movs r1, #160 263 002c 0348 ldr r0, .L36+4 264 002e FFF7FEFF bl HAL_I2C_Mem_Read 265 0032 05B0 add sp, sp, #20 266 @ sp needed 267 0034 30BD pop {r4, r5, pc} 268 .L37: 269 0036 00BF .align 2 270 .L36: 271 0038 00000000 .word stato 272 003c 00000000 .word hi2c1 274 .ident "GCC: (15:10.3-2021.07-4) 10.3.1 20210621 (release)" ARM GAS /tmp/ccwjAWu8.s page 6 DEFINED SYMBOLS *ABS*:0000000000000000 i2c_eeprom.c /tmp/ccwjAWu8.s:16 .text.i2c_eeprom_scrivi_pagina:0000000000000000 $t /tmp/ccwjAWu8.s:25 .text.i2c_eeprom_scrivi_pagina:0000000000000000 i2c_eeprom_scrivi_pagina /tmp/ccwjAWu8.s:56 .text.i2c_eeprom_scrivi_pagina:0000000000000034 $d /tmp/ccwjAWu8.s:59 .text.i2c_eeprom_leggi_pagina:0000000000000000 $t /tmp/ccwjAWu8.s:67 .text.i2c_eeprom_leggi_pagina:0000000000000000 i2c_eeprom_leggi_pagina /tmp/ccwjAWu8.s:98 .text.i2c_eeprom_leggi_pagina:0000000000000034 $d /tmp/ccwjAWu8.s:101 .text.salva_canale:0000000000000000 $t /tmp/ccwjAWu8.s:109 .text.salva_canale:0000000000000000 salva_canale /tmp/ccwjAWu8.s:141 .text.salva_canale:0000000000000038 $d /tmp/ccwjAWu8.s:145 .text.leggi_canale:0000000000000000 $t /tmp/ccwjAWu8.s:153 .text.leggi_canale:0000000000000000 leggi_canale /tmp/ccwjAWu8.s:185 .text.leggi_canale:0000000000000038 $d /tmp/ccwjAWu8.s:189 .text.salva_stato:0000000000000000 $t /tmp/ccwjAWu8.s:197 .text.salva_stato:0000000000000000 salva_stato /tmp/ccwjAWu8.s:228 .text.salva_stato:0000000000000038 $d /tmp/ccwjAWu8.s:232 .text.leggi_stato:0000000000000000 $t /tmp/ccwjAWu8.s:240 .text.leggi_stato:0000000000000000 leggi_stato /tmp/ccwjAWu8.s:271 .text.leggi_stato:0000000000000038 $d UNDEFINED SYMBOLS HAL_I2C_IsDeviceReady HAL_I2C_Mem_Write hi2c1 HAL_I2C_Mem_Read canale stato