Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/25341

From BetaArchive Wiki
Knowledge Base

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

Article ID: 25341

Article Last Modified on 11/21/2006


  • 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



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


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

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