Question: please help to make the assembler by python for RISC-V. I have attached example.asm and Tasks Implement a functian to replace all the lahels in

Implement a functian to replace all the lahels in instructions to their equivalent values Using inst_asm list os input, find labels in each instruction and replace them with their equivalent value. Be sure to take into consideration the current address location. Fxample: It thene is an inetruceion ['bge', 'a0', 'a1', 'done'] at address a and lahol done is at adidress 20 (as caloulated tam Tavk 5 , then the resulting inetractian will be ['bge', 'a0', 'a1', 12] def reylasu_dabels (IHsL_min, Labeds)! N... anren your cade Aere a inkt_ase - neplace_laheis(inst_ose, lahels) 4 onder_mow_incr(inst_ose) a princ('+1pe) V. Arint_ane_labola(tabets)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
