Re: [Amforth] R: Adding WANT_X and a forth constant in asm (was: HW flow control)

2014-08-02 Thread Michael Kalus
Hi. In 4e4th the PROMPT is a forth word, executed right after INTERPRET . That way it is easy to modify. I use character ACK ( $06 EMIT ) as signal for the 4e4th-IDE shell. You may serve other information with the prompt string, like the current number base, or what ever you need. mk ; C PROMP

[Amforth] R: Adding WANT_X and a forth constant in asm (was: HW flow control)

2014-08-02 Thread Paolo Garro
Hi Erich, You are pretty right... Wait the " ok" and then the "\n> " prompt is not a valid solution. In the middle of a ":" definition, the response is a sole " ok" without a prompt so it is ambiguous in general. I've also tried to wait for an error message r"\?\? -\d+ \d+ \n> $" to stop the loop