Skip to content

Instantly share code, notes, and snippets.

@dnc40085
Last active February 21, 2016 18:04
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 dnc40085/df31f74caadda00e7073 to your computer and use it in GitHub Desktop.
Save dnc40085/df31f74caadda00e7073 to your computer and use it in GitHub Desktop.
assembler code for esp8266 function wifi_set_event_handler from ESP8266_NONOS_SDK_V1.5.1_16_01_08.zip
40213fd0 <wifi_set_event_handler_cb>:
40213fd0: fffd31 l32r a3, 40213fc4 <wifi_set_status_led_output_level+0x48>
40213fd3: f0c112 addi a1, a1, -16
40213fd6: 0129 s32i.n a2, a1, 0
40213fd8: 1109 s32i.n a0, a1, 4
40213fda: 000332 l8ui a3, a3, 0
40213fdd: fffa01 l32r a0, 40213fc8 <wifi_set_status_led_output_level+0x4c>
40213fe0: 23ec bnez.n a3, 40214006 <wifi_set_event_handler_cb+0x36>
40213fe2: fffa21 l32r a2, 40213fcc <wifi_set_status_led_output_level+0x50>
40213fe5: 531c movi.n a3, 21
40213fe7: 052c movi.n a5, 32
40213fe9: 004d mov.n a4, a0
40213feb: 60c442 addi a4, a4, 96
40213fee: f2d401 l32r a0, 40210b40 <ets_timer_handler_isr+0xcc>
40213ff1: 0000c0 callx0 a0
40213ff4: fff461 l32r a6, 40213fc4 <wifi_set_status_led_output_level+0x48>
40213ff7: 150c movi.n a5, 1
40213ff9: fff381 l32r a8, 40213fc8 <wifi_set_status_led_output_level+0x4c>
40213ffc: 0178 l32i.n a7, a1, 0
40213ffe: 7879 s32i.n a7, a8, 28
40214000: 004652 s8i a5, a6, 0
40214003: 000046 j 40214008 <wifi_set_event_handler_cb+0x38>
40214006: 7029 s32i.n a2, a0, 28
40214008: 1108 l32i.n a0, a1, 4
4021400a: 10c112 addi a1, a1, 16
4021400d: f00d ret.n
4021400f: d7c000 excw
40214012: e04024 excw
40214015: 4024d7 blt a4, a13, 40214059 <system_uart_swap+0x5>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment