Can I use assembly command "mov" to move data from peripheral to peripheral ?
I'm currently using the STM8L151F3 and implementing the SUMP open logic analyzer. In one part of my code involving with GPIO reading and send data to SPI1_DR. and to make a lots of the capture samples, I use the F-RAM as a external RAM for sampling memory. Since the F-RAM is really fast and practically almost no delay (SPI running at 8MHz).
My question is can I use "mov" instruction to "copy" data from one peripheral address to another ?
this part taken from my code at line 231.
https://github.com/TiNredmc/stm8l_sdcc_template/blob/master/code/ComeNCapture/main.c#L231
// Notice : SDCC compiler
do{
__asm___("mov 0x5204, 0x5006");// PB_IDR -> SPI1_DR
while(capture){