Microsoft KB Archive/25341

= Determining Macintosh ROM Version, 64K or 128K, from Basic =

Article ID: 25341

Article Last Modified on 11/21/2006

-

APPLIES TO


 * Microsoft QuickBasic 1.0
 * Microsoft QuickBASIC 1.0b
 * Microsoft QuickBASIC 1.0b
 * Microsoft BASIC Compiler 6.0b
 * Microsoft BASIC Interpreter 1.0
 * Microsoft BASIC Interpreter 1.01 for Macintosh
 * Microsoft BASIC Interpreter 2.0
 * Microsoft BASIC Interpreter 2.1 for Macintosh
 * Microsoft BASIC Interpreter 3.0 for Macintosh

-



This article was previously published under Q25341



SUMMARY
Question:

How can I determine the Macintosh ROM version from Basic or QuickBasic?

Response:

To determine the type of ROM (64K or 128K), test the high order bit of Low Memory Global ROM85 as follows: IF PEEK(654)AND(2^7) THEN ROM=64 ELSE ROM=128 PRINT ROM This information applies to the following products:


 * Microsoft QuickBasic versions 1.0, 1.0a, and 1.0b for Apple Macintosh
 * Microsoft Basic Compiler version 1.0 for Apple Macintosh
 * Microsoft Basic Interpreter versions 1.0, 1.01, 2.0, 2.1, and 3.0 for Apple Macintosh

Additional query words: BasicCom MQuickB 1.00 1.00a 1.00b 2.00 2.10

Keywords: KB25341

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.