Store pair instruction
Posted: 2020-09-21, 16:56:51
As I was translating a program compiled to ARM assembly to ForwardCom, I realized that ARM can load and store two registers whereas ForwardCom can only do one register, apart from the push and pop instruction. They have additional restrictions such as registers needing to be next to each other (for example r28 and r29) and updating the stack pointer, which you might not want, for example when working with stack frames.
Loading a register pair would violate the contraint of a maximum of one register output per instruction. Storing two registers, however, would fit.
For this reason, I would propose adding a store instruction for two registers. What do you all think of this?
Loading a register pair would violate the contraint of a maximum of one register output per instruction. Storing two registers, however, would fit.
For this reason, I would propose adding a store instruction for two registers. What do you all think of this?