Determining Macintosh ROM Version, 64K or 128K, from Basic (25341)



The information in this article applies to:

  • Microsoft QuickBASIC 1.0
  • Microsoft QuickBASIC 1.0a
  • Microsoft QuickBASIC 1.0b
  • Microsoft BASIC Compiler
  • Microsoft BASIC Interpreter for Apple Macintosh 1.0
  • Microsoft BASIC Interpreter for Apple Macintosh 1.01
  • Microsoft BASIC Interpreter for Apple Macintosh 2.0
  • Microsoft BASIC Interpreter for Apple Macintosh 2.1
  • Microsoft BASIC Interpreter for Apple Macintosh 3.0

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

Modification Type:MinorLast Reviewed:8/16/2005
Keywords:KB25341