Macintosh QuickBASIC Change: Register-Based Toolbox ROM Call (38070)
This article was previously published under Q38070
SUMMARY
The Toolbox statement on Page 501 of the "QuickBASIC for Macintosh:
Language Reference" manual should be corrected to read as follows:
ToolBox "R",Trapnum%,ReturnArray&(0),(a0&),(a1&),(d0&),(d1&),(d2&)
Also, the two occurrences of "ReturnArray(0)%" on Page 501 should be
replaced with "ReturnArray&(0)".
The Toolbox statement on Page 499 is missing trapnum%, and the
registers should be passed by value. Page 499 should be changed to
read as follows:
ToolBox "R",Trapnum%,ReturnArray&(0),(a0&),(a1&),(d0&),(d1&),(d2&)
MORE INFORMATION
Page 501 of the "QuickBASIC for Macintosh: Language Reference" manual
correctly specifies that the parameters of a register-based ROM call
must be a long integer, but the example provided incorrectly shows
these values typecast with % (short integer). The values passed to a
register-based ROM call should be a long integer (&), except for
trapNum%.
Modification Type: |
Minor |
Last Reviewed: |
1/8/2003 |
Keywords: |
KB38070 |
|