Autres articles / Other articles

Instructions assembleur XTENSA par fonctions

publication: 4 octobre 2023 / mis à jour 4 octobre 2023

Read this page in english

 

Appel à collaboration

Vous développez des montages, simples ou complexes avec ESP32 et ESP32forth.

Partagez-les ici sur ce site.

ESP32forth ne pourra se développer qu'avec la collaboration active de toutes les bonnes volontés.

Vos montages peuvent aider d'autres développeurs.

Les montages des autres développeurs peuvent vous aider.

Pour proposer un article ou un montage, cliquez ici


Load instructions

L8UI,   \ 8-bit unsigned load (8-bit offset) 
L16SI,  \ 16-bit signed load (8-bit shifted offset) 
L16UI,  \ 16-bit unsigned load (8-bit shifted offset) 
L32I,   \ 32-bit load (8-bit shifted offset) 
L32R,   \ 32-bit load PC-relative (16-bit negative word offset) 

Only the loads L32I, L32I.N, and L32R, can access InstRAM and InstROM locations.

Store instructions

S8I,    \ 8-bit store (8-bit offset) 
S16I,   \ 16-bit store (8-bit shifted offset) 
S32I,   \ 32-bit store (8-bit shifted offset) 

Memory Access Ordering

MEMW,   \ Order memory accesses before with memory access after 
EXTW,   \ Order all external effects before with all external effects after 

Jump and Call Instructions

CALL0,   \ CALL Call subroutine, PC-relative 
CALLX0,  \ CALLX Call subroutine, address in register  
J,       \ CALL Unconditional jump, PC-relative 
JX,      \ CALLX Unconditional jump, address in register 
RET,     \ CALLX Subroutine return—jump to return address.  
         \ Used to return from a routine called by CALL0/CALLX0 

Conditional Branch Instructions

BEQZ,   \ Branch if equal to zero 
BNEZ,   \ Branch if not equal to zero 
BGEZ,   \ Branch if greater than or equal to zero 
BLTZ,   \ Branch if less than zero 
BEQI,   \ Branch if equal immediate 
BNEI,   \ Branch if not equal immediate 
BGEI,   \ Branch if greater than or equal immediate 
BLTI,   \ Branch if less than immediate 
BGEUI,  \ Branch if greater than or equal unsigned immediate 
BLTUI,  \ Branch if less than unsigned immediate2 
BBCI,   \ Branch if bit clear immediate 
BBSI,   \ Branch if bit set immediate 
BEQ,    \ Branch if equal 
BNE,    \ Branch if not equal 
BGE,    \ Branch if greater than or equal 
BLT,    \ Branch if less than 
BGEU,   \ Branch if greater than or equal unsigned 
BLTU,   \ Branch if less than Unsigned 
BANY,   \ Branch if any of masked bits set 
BNONE,  \ Branch if none of masked bits set (All Clear) 
BALL,   \ Branch if all of masked bits set 
BNALL,  \ Branch if not all of masked bits set 
BBC,    \ Branch if bit clear 
BBS,    \ Branch if bit set 

Legal: site web personnel sans commerce / personal site without seling