[Answered] Assembler language reference manual ...

User avatar
hydrabus
Posts: 29
Joined: Wed Nov 25, 2015 11:45 pm
Location: France
Contact:

Re: Assembler language reference manual ...

Postby hydrabus » Sat Oct 22, 2016 8:57 pm

hydrabus wrote: 1) A way to Count Leading Zeros of a 32bits unsigned integer
Does such feature exist on ESP32 CPU ?
ESP_igrr wrote: Yes, using NSAU instruction. Compiler will generate it if you use GCC __builtin_clz() intrinsic.
Thanks for the hint and the fact it support asm instruction for that I will test it later to check it generate the right asm code...
hydrabus wrote: 2) In a near future write an IDA Pro Processor Module for ESP32 (as only ESP8266 is supported ...)
ESP_igrr wrote: I have extended the 8266 ida-python plugin with some of the ESP32 instructions (not added FP yet) and am using it personally in day-to-day debugging using ScratchABit disassembler. I can share what i have if you want to work on this.
Could you share your plugin ?
My email is bvernoux at hydrabus.com
hydrabus wrote: 4) A way to retrieve number of cycles executed (with accuracy of CPU clock so 240MHz) on 64bits if possible (but I can survive with 32bits), CPU cycle counter (like on ARM CM3... => DWTBase->CYCCNT) is perfect for that (even if timer can be also used ...)
ESP_igrr wrote: 32-bit CPU cycle counter can be queried by reading CCOUNT special register, or equivalently, using xthal_get_ccount function defined in Xtensa HAL.
Thanks for the hint I will check that

ESP_igrr
Posts: 2071
Joined: Tue Dec 01, 2015 8:37 am

Re: Assembler language reference manual ...

Postby ESP_igrr » Mon Oct 24, 2016 3:45 am

hydrabus wrote: Could you share your plugin ?
My email is bvernoux at hydrabus.com
I've sent you an email.

User avatar
hydrabus
Posts: 29
Joined: Wed Nov 25, 2015 11:45 pm
Location: France
Contact:

Re: Assembler language reference manual ...

Postby hydrabus » Mon Oct 24, 2016 9:08 pm

ESP_igrr wrote:
hydrabus wrote: Could you share your plugin ?
My email is bvernoux at hydrabus.com
I've sent you an email.
Thanks for all I have replied to your Email

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: [Answered] Assembler language reference manual ...

Postby kolban » Fri Jan 12, 2018 4:58 am

Has there been an update on the assembler language reference manual availability?
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

lesept
Posts: 38
Joined: Wed Jun 27, 2018 10:30 pm

Re: [Answered] Assembler language reference manual ...

Postby lesept » Sat Jan 26, 2019 10:37 am

Hi
Any news about the availability of the assembler language reference manual for ESP32?

ESP_Sprite
Posts: 9708
Joined: Thu Nov 26, 2015 4:08 am

Re: [Answered] Assembler language reference manual ...

Postby ESP_Sprite » Mon Jan 28, 2019 2:59 am

Still no change in status, unfortunately...

tosemusername
Posts: 18
Joined: Tue Feb 05, 2019 5:28 pm
Location: Brazil

Re: [Answered] Assembler language reference manual ...

Postby tosemusername » Thu Jul 08, 2021 12:50 am

So will this ever happen?

ESP_Sprite
Posts: 9708
Joined: Thu Nov 26, 2015 4:08 am

Re: [Answered] Assembler language reference manual ...

Postby ESP_Sprite » Thu Jul 08, 2021 1:20 am

It's unlikely that the official Cadence docs ever see a non-NDA-encumbered release... but there is information out there in the form of the compiler etc. We've tried to compile all this publically available info into one one file. It's a bit terse, bit I think it should be helpful when you decide to write assembly.

Who is online

Users browsing this forum: Baidu [Spider] and 106 guests