So I've been learning about machine code and assembly language the past few weeks but am somewhat struggling. One of the problems on my assignment asks to convert the listed sequence below into assembly language but I'm just not understanding where to start. Nothing within our notes looks even close to this problem and the textbook isn't much help either. Here's the information given to me:
F(0) = 1;
M(0) = 0;
F(n) = n – M(F(n – 1)) when n > 0
M(n) = n – F(M(n – 1)) when n > 0
I'm pretty much lost at this point as everything we've been doing up until this question has been converting if and while loops along with some array comparisons. Can anyone guide me in the right direction?