- setprg8r((GameMemBlock[0]&0xC)>>2,0x6000,((GameMemBlock[0]&0x3)<<4)|0xF);
- if(GameMemBlock[0]&0x10)
- {
- setprg16r((GameMemBlock[0]&0xC)>>2,0x8000,((GameMemBlock[0]&0x3)<<3)|(GameMemBlock[1]&7));
- setprg16r((GameMemBlock[0]&0xC)>>2,0xc000,((GameMemBlock[0]&0x3)<<3)|7);
- }
- else
- setprg32r(4,0x8000,0);
-
- setmirror(((GameMemBlock[0]&0x20)>>5)^1);
+ setprg8r((cmd0&0xC)>>2,0x6000,((cmd0&0x3)<<4)|0xF);
+ if(cmd0&0x10)
+ {
+ setprg16r((cmd0&0xC)>>2,0x8000,((cmd0&0x3)<<3)|(cmd1&7));
+ setprg16r((cmd0&0xC)>>2,0xc000,((cmd0&0x3)<<3)|7);
+ }
+ else
+ setprg32r(4,0x8000,0);
+ setmirror(((cmd0&0x20)>>5)^1);