Code unpacking hang

Hello everyone,

I am writing a program that is loaded into my R32C's ROM, that then attempts to write opcode instructions to some address range (Say, from 0x8500 to 0x9000) and then execute them.

The instructions themselves are currently just a loop that prints a message, that I expect to run infinitely.

The loop is position independant (I jump backwards the required number of bytes), so the execution should work. I however, do not see the messages being printed after jumping into the opcodes i wrote.

Instead, the peogram seems to freeze up Disappointed

Could there any reason that this is the case on the R32C?

P.S. if the very same instructions are executed from the ROM if I modify the image, the code seems to run fine