Vote count:
0
I have 2 functions which are predefined in MIPs. fcn1 branches and the fcn2 jumps and returns.
I want to make a self modifying program which when the call to execute fcn1 is given I modify instructions and call fc1l2 prior to fcn1.
This is without additional jumps or branches.
The Structure is: Fcn1: ......
Fcn2: ..... Jr $ra
Main: b fcn1
I was thing of modifying memory addresses for function lablels but that requires an addtional jump or branch
asked 1 min ago
Self modifying code in MIPS
Aucun commentaire:
Enregistrer un commentaire