+ // calculate a mask for bank writes.
+ // ROM loader has aligned the size for us, so this is safe.
+ s = 0; tmp = Pico.romsize;
+ while ((tmp >>= 1) != 0)
+ s++;
+ if (Pico.romsize > (1 << s))
+ s++;
+ tmp = 1 << s;
+ bank_mask = (tmp - 1) >> 14;
+
+ Pico.ms.carthw[0x0e] = 1;
+ Pico.ms.carthw[0x0f] = 2;
+