sh: Setup the frame register in asm code