Menu

micro(A) development news

2021-03-22
2024-06-27
  • Zlatko Vidlanovic

    function stack calls

    // function  or subroutine call
    inside curly baraces is internal interpreter code
    
    myFunc()
    { fnStack[index] : fst = index }
    ...
    label CONTINUE
    ...
    .|.
    .V.
    ....................
    func myFunc()
    ....................
    label HERE:
    { fst = fst - 1 }
    
    // recursive call from inside //
    
             if TRUE
             ..............
              myFunc()
             ..............
              { fst = fst + 1 }
              { index = fst }
              { pos = fnStack[index] } -> return to label HERE
    
             end if
    
    .........
    endFn
    .........
    { fst = fst + 1 }
    { pc = fnStack[fst] } -> return to label CONTINUE
    
     
  • Zlatko Vidlanovic

    Latest release under main page :use link!
    12.6.2021

     
  • Zlatko Vidlanovic

    V12

     
  • Zlatko Vidlanovic

    latest code :

     
  • Zlatko Vidlanovic

    Unfortunately i am still in problem with recursive function calls with params
    any help is welcome ?

     

Log in to post a comment.