Am Freitag, den 19.10.2018, 14:46 +0200 schrieb Tristan:
> Hello Martin,
> 
> Very intriguing, just when I am away from my machine so I can’t test
> things out!
> 
> If I remember correctly, the default Amforth avr build uses (rx,tx)
> interrupts to handle the serial prompt. If at the serial prompt I
> type in the word -int and “all” -int did was to issue the assembler
> cli instruction I should lose my serial prompt. I can’t check now but
> if the serial prompt does not disappear then there is other machinery
> at work. 

It depends. Serial send (TX) is since long not interrupt driven. It
works even with disabled interrupts. Receiving is usually interrupt
driven, but can be configured to a polling code. It has 2 advantages:
smaller code and works almost always. The disadvantage is, that 
characters may be lost if they arrive too fast. 

The non-avr platforms are all non-interrupt based.

Matthias

PS: nice discussions this week :=)




_______________________________________________
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel

Reply via email to