I didn't expect the code to be very usable, merely compilable. =-)

If I want to call myself from myself, how do I do that then?

For anything else, I do:

  .local Sub foo_sub
  newsub foo_sub, .Sub, __foo

  .pcc_begin prototyped
  .arg $S1
  .pcc_call foo_sub
  tellmeagainwhyineedthislabel:
  .result $S1
  .pcc_end


If I can't explicitly create foo_sub if I'm in the middle of __foo, how do I recurse using calling conventions?


And, in my defense, all this code worked a few months ago. =-)

On Monday, January 19, 2004, at 01:54 PM, Leopold Toetsch wrote:

Will Coleda <[EMAIL PROTECTED]> wrote:
(has a .end) Yup.

Managed to shrink it down to:

.pcc_sub __interpret prototyped
   newsub P1, .Sub, __interpret
   .pcc_begin_return
   .return 0
   .pcc_end_return
.end

Two problems: You are overriding the already existing Sub with that name
and 2) you destroy your return continuation, which could be already in P1.


leo


--
Will "Coke" Coleda will at coleda dot com




Reply via email to