All
ZMFACC Assembler Coding Contest - A
new problem #14 - code the Ackerman function to calc a(4,1)=65533.
Code a macro assembler program to calculate
the value of the Ackerman function a(4,1) = 65533. The Ackerman function
a(m,n) is a recursively defined function as follows:
1. If m = 0, then a(m, n) = n+1
2. if m > 0 and n = 0, then a(m, n) =
a(m-1,1)
3. if m> 0 and n > 0, then a(m,n) =
a(m-1,a(m,n-1))
For
more information on the Ackerman function visit:
http://en.wikipedia.org/wiki/Ackermann_function
http://z390.sourceforge.net/z390_Mainframe_Assemble_Coding_Contest.htm
Don Higgins
mailto:don@...
http://don.higgins.net