IRA program Write program code for a subroutine HamDistReg. The subroutine has two input parameters in registers R3 and
Posted: Fri Apr 29, 2022 7:13 am
IRA program
Write program code for a subroutine HamDistReg. The subroutine
has two input parameters in registers R3 and R4; and a return value
in the register R2. The subroutine will return how many bits differ
in the two 32 bits numbers stored in R3 and R4. Do you use local
variables, how do you manage them? How do you pass the parameter n
to the subroutine and how does the subroutine return the
result?
Write program code for a subroutine HamDistReg. The subroutine
has two input parameters in registers R3 and R4; and a return value
in the register R2. The subroutine will return how many bits differ
in the two 32 bits numbers stored in R3 and R4. Do you use local
variables, how do you manage them? How do you pass the parameter n
to the subroutine and how does the subroutine return the
result?