Close

CALL and RET

A project log for M0S - CortexM0 RTOS in 1024 bytes

Full blown RTOS written in Thumb ARM assembly language to fit in 1024 bytes

dumitrustamadumitru.stama 12/03/2016 at 07:240 Comments

A few people asked me why I defined these two macros in the assembly source file.

There is nothing wrong with "bl subroutine" or "bx lr" but these two macros help me read the code faster when I look for specific subroutines.

I call it "professional defect" since most of the days I stare at Intel assembly and I am used to mentally separate code blocks in a specific way.

Discussions