embedded systems developers tools, cross compilers
  Home  |   SwiftX Archive  |   SwiftForth Archive  |

To PAUSE on KEY? or not

From: Bulgrien, Dennis <Dennis.Bulgrien_at_GDSATCOM.com>
Date: Mon, 6 Mar 2006 07:46:41 -0600

The documentation does not imply whether KEY? should (by standard) do a
PAUSE . I think that it is not technically an I/O in the normal sense
because it does not and will never wait for anything. The information it
needs is readily available. Though many implementations of KEY? do have
PAUSE I would like more confidence that code like this "BEGIN KEY? UNTIL" is
portable, or whether one should explicitly write "BEGIN PAUSE KEY? UNTIL" .
I know of an example in the SwiftX kernel where it does not PAUSE .

SwiftX.pdf, 5.2 PRINCIPLES OF OPERATION, 5.2.1 Task-Scheduling Algorithm,
"Most words performing asynchronous hardware operations (e.g., TYPE, ACCEPT)
contain a WAIT or a jump to PAUSE so, while a task is waiting for an I/O
operation to be completed, other tasks can use the CPU."
----------------------------------------------------------------------
swiftx_at_forth.com The SwiftX programming discussion email list
To unsubscribe, send subject "unsubscribe" to swiftx-request_at_forth.com
For list command help, send subject "help" to swiftx-request_at_forth.com
Message archives are located at http://www.forth.com/archive/swiftx
----------------------------------------------------------------------
This list is a forum for SwiftX users. For product support and bug
reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Mon Mar 06 2006 - 05:47:08 PST

This archive was generated by hypermail 2.2.0 : Tue Dec 02 2008 - 03:04:50 PST