Hi,
I'm researching the CATCH / THROW / ABORT matter...
I'm using SwiftX for the AVR. I've searched in the 3 manuals: Forth
handbook, SwiftX, SwiftX-AVR.
I can't answers to the following questions:
1. Where does the Exception Stack reside? Within a task? and if so, is
there a difference between background and terminal task.
2. ABORT returns to the task's default Idle behavior; how is the default
behavior determined? (background task?)
3. What is a common implementation for a default exception-handler on a
task? The following?
: TASK_START ( exception-routine-addr task-routine-addr task-addr -- )
ACTIVATE \ activate task
BEGIN
DUB CATCH \ execute the task-routine
IF OVER EXECUTE \ error throwed : execute exception routine
ELSE NOD \ no error throwed : stop task
THEN
AGAIN
;
Thanks in advance,
Frank Boon
Metatronics.
PS1: Is the SCRATCH-pointer in the AVR-SWIFTX (Z, R30/R31) solely for my
own use?
PS2: page 22 in 'Swiftx.pdf' has an anchor "Section 4.7 (”Exceptions and
Error Handling”)" to '/swiftforth manual/programming.pdf' which I don't
have... documentation-error?
----------------------------------------------------------------------
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 Sun Dec 05 2004 - 05:58:14 PST
Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!
This archive was generated 09-Feb-2012. Archive updated nightly.