tomtor / ulp-i2c

Esp32 ULP I2C code and bmp180 example
GNU Lesser General Public License v3.0
99 stars 18 forks source link

Macro PSR #2

Closed HengYongChao closed 6 years ago

HengYongChao commented 6 years ago

Hi tomtor,I have confuse on macro psr. .macro psr sr=r1 pos=. .set _next2,(\pos+16) move \sr,_next2 push \sr .endm Why addr + 16 here? I think stack point should -16, please have a look. @tomtor

tomtor commented 6 years ago

It should point to the address of the first instruction following the macro, so +16 really is ok!