ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/main.cpp
(Generate patch)

Comparing BasiliskII/src/main.cpp (file contents):
Revision 1.11 by cebix, 2002-01-15T14:58:32Z vs.
Revision 1.12 by cebix, 2002-03-19T14:25:50Z

# Line 102 | Line 102 | bool InitAll(void)
102          // Load XPRAM
103          XPRAMInit();
104  
105 +        // Load XPRAM default values if signature not found
106 +        if (XPRAM[0x0c] != 0x4e || XPRAM[0x0d] != 0x75
107 +         || XPRAM[0x0e] != 0x4d || XPRAM[0x0f] != 0x63) {
108 +                D(bug("Loading XPRAM default values\n"));
109 +                memset(XPRAM, 0, 0x100);
110 +                XPRAM[0x0c] = 0x4e;     // "NuMc" signature
111 +                XPRAM[0x0d] = 0x75;
112 +                XPRAM[0x0e] = 0x4d;
113 +                XPRAM[0x0f] = 0x63;
114 +                XPRAM[0x01] = 0x80;     // InternalWaitFlags = DynWait (don't wait for SCSI devices upon bootup)
115 +                XPRAM[0x10] = 0xa8;     // Standard PRAM values
116 +                XPRAM[0x11] = 0x00;
117 +                XPRAM[0x12] = 0x00;
118 +                XPRAM[0x13] = 0x22;
119 +                XPRAM[0x14] = 0xcc;
120 +                XPRAM[0x15] = 0x0a;
121 +                XPRAM[0x16] = 0xcc;
122 +                XPRAM[0x17] = 0x0a;
123 +                XPRAM[0x1c] = 0x00;
124 +                XPRAM[0x1d] = 0x02;
125 +                XPRAM[0x1e] = 0x63;
126 +                XPRAM[0x1f] = 0x00;
127 +                XPRAM[0x08] = 0x13;
128 +                XPRAM[0x09] = 0x88;
129 +                XPRAM[0x0a] = 0x00;
130 +                XPRAM[0x0b] = 0xcc;
131 +                XPRAM[0x76] = 0x00;     // OSDefault = MacOS
132 +                XPRAM[0x77] = 0x01;
133 +        }
134 +
135          // Set boot volume
136          int16 i16 = PrefsFindInt32("bootdrive");
137          XPRAM[0x78] = i16 >> 8;
# Line 143 | Line 173 | bool InitAll(void)
173          if (!VideoInit(ROMVersion == ROM_VERSION_64K || ROMVersion == ROM_VERSION_PLUS || ROMVersion == ROM_VERSION_CLASSIC))
174                  return false;
175  
176 <        // Set default video mode
176 >        // Set default video mode in XPRAM
177          XPRAM[0x56] = 0x42;     // 'B'
178          XPRAM[0x57] = 0x32;     // '2'
179          XPRAM[0x58] = DepthToAppleMode(VideoMonitor.mode.depth);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines