2つ以上が1ならNG

  • タグ:
  • タグはありません
// 2つ以上でBAD
sel maps<12>;
maps = map_wram || map_ppu1 || map_apu || map_pad || map_ppu2 || map_dma || map_rom || map_cowram || map_sram20 || map_sram21 || map_dsp || map_reserve;
if(^(
(maps==0b100000000000) |
(maps==0b010000000000) |
(maps==0b001000000000) |
(maps==0b000100000000) |
(maps==0b000010000000) |
(maps==0b000001000000) |
(maps==0b000000100000) |
(maps==0b000000010000) |
(maps==0b000000001000) |
(maps==0b000000000100) |
(maps==0b000000000010) |
(maps==0b000000000001) )) halt(0xD2);