Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
projects:misc [2019/05/25 14:35]
M.G. [OF816 for Apple IIgs]
projects:misc [2019/05/25 14:37]
M.G. [Things to Try]
Line 10: Line 10:
 **$GS-USERID** ( -- u ) return the Toolbox user ID of the running Forth. **$GS-USERID** ( -- u ) return the Toolbox user ID of the running Forth.
  
-**$GS-TOOLCALL** ( i*n i t1 j t2 tool# -- j*n ) call Toolbox, passing i arguments to the tool, and receiving j results. ​ t1 and t2 are the type bits for the arguments and results, respectively,​ where b0 = the first arg, b1 the second arg, etc.  A 1 bit means the argument or result is a long, 0 indicates a word.  Arguments and results are specified/​received in reverse order from the toolbox call (first off the Forth stack is first on the return stack).+**$GS-TOOLCALL** ( i*n i t1 j t2 tool# -- j*n ) call Toolbox, passing i arguments to the tool, and receiving j results. ​ t1 and t2 are the type bits for the arguments and results, respectively,​ where b0 = the first arg, b1 the second arg, etc.  A 1 bit means the argument or result is a long, 0 indicates a word.  Arguments and results are specified/​received in reverse order from the toolbox call (topmost on the Forth stack is bottommost ​on the return stack).
  
 Some pre-canned toolbox calls: Some pre-canned toolbox calls:
Line 34: Line 34:
  
 **_SYSFAILMGR** ( addr u -- ) call fatal error handler, u = error code, addr = address of packed string message or 0. **_SYSFAILMGR** ( addr u -- ) call fatal error handler, u = error code, addr = address of packed string message or 0.
-